Mr Violent 0 Newbie Poster

Okay, I'm able to set my color key to black easily enough, but I'm having trouble setting it to purple.

COLORREF colorkey = RGB(180, 0, 180);

if (colorkey != -1) {
	ddck.dwColorSpaceLowValue = colorkey;
	ddck.dwColorSpaceHighValue = colorkey;
	pdds->SetColorKey(DDCKEY_SRCBLT, &ddck);
}

RGB(180, 0, 180) is the purple color I'd like to use. I have my tiles.bmp file background saved with this purple color, and I'm blitting the entire tiles image to the screen to see if the color key works. However, it is not working!


If anyone could provide some suggestions or help, it would be grealy appreciated! Thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.