Archived

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

Gamma Fade and DDERR_SURFACELOST

This topic is 5899 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 have a little question. Whenever I want to use Get/SetGammaRamp the function returns with a value different of DD_OK and I get a DDERR_SURFACELOST. Did anyone got the same problem? Thanks for your answers. FF ----------------------------------------------------- Here is the pseudocode ----------------------------------------------------- MyVideoClass::Init() { ... this->lpDDSPrimary->QueryInterface(IID_IDirectDrawGammaControl, (void **) &(this->lpDDGammaControl)); ... } MyVideoClass::FadeOut() { DDGAMMARAMP DDGammaRamp; this->lpDDGammaControl->GetGammaRamp(0, &DDGammaRamp); ... this->lpDDGammaControl->SetGammaRamp(0, &DDGammaRamp); } ----------------------------------------------------- I have checked the following: 1) this->lpDDGammaControl is != of NULL 2) I have tried it on a Matrox G200 and a GeForce2GTS. 3) the this->lpDDSPrimary->QueryInterface(...) returned with a DD_OK

Share this post


Link to post
Share on other sites