[Project64-Video] Fix desktop brightness
It should only work in fullscreen.
This commit is contained in:
parent
8b0a51c066
commit
79dbd32546
|
@ -1754,7 +1754,8 @@ static void CorrectGamma(LPVOID apGammaRamp)
|
||||||
HDC hdc = GetDC(NULL);
|
HDC hdc = GetDC(NULL);
|
||||||
if (hdc != NULL)
|
if (hdc != NULL)
|
||||||
{
|
{
|
||||||
SetDeviceGammaRamp(hdc, apGammaRamp);
|
if (to_fullscreen)
|
||||||
|
SetDeviceGammaRamp(hdc, apGammaRamp);
|
||||||
ReleaseDC(NULL, hdc);
|
ReleaseDC(NULL, hdc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue