Jump to content
  • Advertisement


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


16 bit color and ddbltfx

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

Could you use?

red = ff0000h
blue = 00ff00h
green = 0000ffh

would that be the same as using the rgb macro? I have never tried it before because I don't use dx's color fill.

Share this post

Link to post
Share on other sites
You should always check the pixelformat of your surface(s) using
If you don't, your colors could be messed up on other video cards.
(That was a problem i had, not long ago)


Share this post

Link to post
Share on other sites
I'm doing a colorfill for a certain region, so I call the Blt function and pass the ddbltfx structure. But how do I get the color I want for ddbltfx.dwFillColor.

For example, what value do I pass to dwFillColor to get pure red, or pure green, or pure blue? (I'm new with 16 bit color)Thanks for your help.

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!