Mail Archives: djgpp/1997/10/10/13:31:45
Shawn Hargreaves wrote:
>
> Ross Boast writes:
> >Remember i'm talking about the colors which apply when you have the
> >default/standard colors, i haven't touched the palette yet , i have no
> >need for what i want to do :).
>
> Bad move. If you don't set the palette yourself, you will get whatever
> colors your video BIOS decides to use. This is _usually_ a standard
> layout, but not always: I've seen some cards and VESA drivers that do
> completely different things. You really ought to set the palette
> yourself, so you know for sure what the colors will be...
>
> --
> Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
> Beauty is a French phonetic corruption of a short cloth neck ornament.
If you've been using the colours assigned by default: use a screen
grab program to save the palette in PCX format; you can then use a
utility which comes with Allegro to get the palette from the PCX file.
Save the palette as a datafile, and use this datafile to initialise
the palette from your code.
- Raw text -