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

Fundy Glostna

Color Keys: nothing happens

Recommended Posts

DirectDraw color keys never seem to work for me! I know it''s the simplest thing in the world, but I can''t seem to get any colors in my palette to not blit! Entry 0 in my 256 color palette is black, and I set up the DDCOLORKEY structure like this:
DDCOLORKEY ddcolkey;
ddcolkey.dwColorSpaceHighValue = 0;
ddcolkey.dwColorSpaceLowValue = 0;
//lpddsOff is my source blitting surface.

the compiler says everything''s fine, and SetColorKey returns DD_OK. I''ve tried changing the HighValue to cover all palette entries, but still nothing happens!

Share this post

Link to post
Share on other sites