🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Destination Colour Keys == Evil

Started by
0 comments, last by WORF 24 years, 6 months ago
I have a theory that destination color keys hate me. This left me wondering if destination color keys are hardware dependent. I have gotten source color keys up and working no problem, but a blt with a DDBLT_KEYDEST flag always fails. I'm setting the color key like thus:

DDCOLORKEY ddck;

memset((DDCOLORKEY*)&ddck, 0, sizeof(ddck));

ddck.dwColorSpaceHighValue = RGB16(0,0,0);
ddck.dwColorSpaceLowValue = RGB16(0,0,0);

ddsFont->SetColorKey(DDCKEY_DESTBLT, &ddck);

Any ideas?

Thanks.

P.S. I'm not sure if this message board inputs linefeeds for me or if I need br tags. Sorry if the formatting is messed up

...keeping it simple...
Advertisement
I seem to recall it mentioning in La Mothe's book (Tricks of the windows game programming gurus) that destination colour keying isn't supported in software - and that a lot of cards don't support it. He suggests sticking with source colour keying (even though destination colour keying is pretty neat).

This topic is closed to new replies.

Advertisement