Blitz (22/81)

From:David McMinn
Date:6 Mar 2001 at 18:25:24
Subject:Re: Next problem: Corrupt Palette

Hi Mac

> Well, now I've got a "real" problem:
> I want to display a shape on a blank screen, but when I load it and display it,
> the colors are corrupt. They are the same colors as in the >real< palette, but
> they are in a wrong order.

Shape files normally have no palette information, so you'll need to have a
palette saved from your paint program, which you can load in with "LoadPalette
palette_number, palette_filename$".

If you are loading a Brush or AnimBrush, then you can grab the palette from
those files with the command you load the brush with (I can't remember what it
is now), or you can simply call LoadPalette on these files too.

After you have created your coplist and things (are you still using a coplist?)
you can use the "DisplayPalette coplist_number, palette_number" to display the
correct palette.



|) /\ \/ ][ |) |\/| c |\/| ][ |\| |\| | dave@blitz-2000.co.uk
http://members.nbci.com/david_mcminn | ICQ=16827694
Tom...you're a dick!
- Soap, Lock Stock & 2 Smoking Barrels

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list/-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list/-help@netsoc.ucd.ie