Gamma Fade and DDERR_SURFACELOST

Started by
0 comments, last by ffenrikson 22 years, 6 months ago
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
Mr. Garisson"Remember, There''s no such thing as stupid questions, ..."
Advertisement
Ok I tried to restore my Surface and now I have a *****
DDERR_WRONGMODE.

I miss VGA programming (sniff...)

FF
Mr. Garisson"Remember, There''s no such thing as stupid questions, ..."

This topic is closed to new replies.

Advertisement