From 79dbd325460139c221b51f593c47f2720fb2d9e0 Mon Sep 17 00:00:00 2001 From: Frank-74 Date: Mon, 14 Jan 2019 03:29:17 +0000 Subject: [PATCH] [Project64-Video] Fix desktop brightness It should only work in fullscreen. --- Source/Project64-video/Renderer/OGLglitchmain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Project64-video/Renderer/OGLglitchmain.cpp b/Source/Project64-video/Renderer/OGLglitchmain.cpp index 504584501..e87d256aa 100644 --- a/Source/Project64-video/Renderer/OGLglitchmain.cpp +++ b/Source/Project64-video/Renderer/OGLglitchmain.cpp @@ -1754,7 +1754,8 @@ static void CorrectGamma(LPVOID apGammaRamp) HDC hdc = GetDC(NULL); if (hdc != NULL) { - SetDeviceGammaRamp(hdc, apGammaRamp); + if (to_fullscreen) + SetDeviceGammaRamp(hdc, apGammaRamp); ReleaseDC(NULL, hdc); } }