Mail Archives: djgpp/1999/03/08/07:48:05
ian_dunbar AT my-dejanews DOT com writes:
> I have a problem displaying a 256 color bitmap. It is displayed as all the
> wrong colors.
Your code looks ok, so I'd guess that this is a color format conversion
problem. What color depth are you using, and what format is your image?
Are you sure that you are setting the graphics mode before you load
in the file? If you are loading a paletted graphic for display in
a truecolor mode, you'll need to disable the automatic color conversion
and do this yourself before you display it: see the set_color_conversion()
function in the docs.
Shawn Hargreaves.
- Raw text -