Advertisement

Color Keys: nothing happens

Started by February 15, 2002 09:45 PM
1 comment, last by Fundy Glostna 22 years, 10 months ago
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!
No, Canadians DON'T all live in igloos. They live in one BIG igloo!
Remember to use the flag DDBLT_KEYSRC when blitting....Otherwise it will not work..
-------------Ban KalvinB !
Advertisement
Merci!
No, Canadians DON'T all live in igloos. They live in one BIG igloo!

This topic is closed to new replies.

Advertisement