Gamma Fade and DDERR_SURFACELOST
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement