Archived

This topic is now archived and is closed to further replies.

Ridcully

Creating palletized 8Bit surfaces with DDraw

Recommended Posts

Ridcully    122
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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
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

Share this post


Link to post
Share on other sites
Staffan    122
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.

Share this post


Link to post
Share on other sites