Jump to content
  • Advertisement


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


Gamma ramp problem

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

Hello, I''ve got a little problem with gamma ramps. I wanted to use it for a simple fade-in and fade-out. First, I just did some experiments, but even the following code failed: D3DGAMMARAMP D3DGammaOld; ZeroMemory(&D3DGammaOld,sizeof(D3DGAMMARAMP)); lpD3DDevice->GetGammaRamp(&D3DGammaOld); lpD3DDevice->SetGammaRamp(0, &D3DGammaOld); When I do this, the ENTIRE screen gets black(!) although my program does not use full-screen mode. In my opinion, there should not be any change at all as I simply apply the gamma ramp that was used before. Any idea what could be wrong? I don''''t need any signature ;-)

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!