Archived

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

Color Keys: nothing happens

This topic is 5777 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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;
ZeroMemory(&ddcolkey,sizeof(DDCOLORKEY));
ddcolkey.dwColorSpaceHighValue = 0;
ddcolkey.dwColorSpaceLowValue = 0;
lpddsOff->SetColorKey(DDCKEY_SRCBLT,&ddcolkey);
//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