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!
Color Keys: nothing happens
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:
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 !
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement