Jump to content
  • Advertisement
Sign in to follow this  

Textout and Background color

This topic is 3898 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

Okay so when I use Textout in Directdraw I get white all around the letters. I think its because the HDC background color must default to white. I don't know this for sure though. If it is, how do I set the background for HDC? And is it possible to set it transparent? And if that's not it, please help me figure out what is going on. And yes I'm using DirectDraw7 -_- I'm a noob, so its been easier for me. The white around the text doesn't show up when I run the program under Windows 98 if that helps.

Share this post


Link to post
Share on other sites
Advertisement
No idea about the finer details of using TextOut with DirectDraw, but with a normal DC, you would call SetBkColor, passing the HDC as the first parameter and TRANSPARENT as the second.

I assume you are getting a DC from a DirectDrawSurface? I don't know if SetBkColor will work, although I don't see why it shouldn't.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!