Creating palletized 8Bit surfaces with DDraw

Started by
2 comments, last by Ridcully 24 years, 2 months ago
hi my application uses 16bit fullscreen mode / windows desktop to blit offscreen surfaces to the primary surface. the offscreen surfaces contain bitmaps loaded from a palletized 8bit file, and because the primary surface is 16bit they are converted to this format in the memory now my question is, how can i create 8bit surfaces with a primary 16bit surface? must i attach a pallete to the offscreen surface or initialize it differently? thanks ridcully
Advertisement
okay, i''ll change my question a bit:

is it POSSIBLE to store a 8bit surface in memory with a display mode of 16bit?

thanks again
ridcully
Nope. I think not. I remember seeing something on this in the MSDN docs but i can''t seem to find it. Anyways, if you somehow find out how to do it feel free to drop me a note Doing asm routines to do the job is much more challenging, though.
okay, i see it really isn''t possible in a clean way...
would have slown down my blitter anyways

This topic is closed to new replies.

Advertisement