Mail Archives: djgpp/1997/12/12/06:31:25
On Fri, 12 Dec 1997 00:12:29 -0800, "Hugo C. Yeh" <hcyeh AT uci DOT edu>
wrote:
>I'm just starting off and I've tried using the grabber tool in Allegro
>to get the BMP's, but the color's always messed up when loaded...Does
>anyone know a way to correct this? ...
>
>Hugo
>
Allegro saves the palette data and the bitmap data seperately. You
must first read in the bitmap..grab the bitmap data.. then make a new
palette and grab the palette info from the bitmap. Then you can use
set_palette(); to set up the correct palette before blitting the
bitmap to the screen.. That should fix the color problem.
Jaster...
- Raw text -