Jump to content
  • Advertisement


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

Fundy Glostna

Color Keys: nothing happens

This topic is 6120 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;
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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!