diff options
Diffstat (limited to 'source/vid_win.c')
-rw-r--r-- | source/vid_win.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/vid_win.c b/source/vid_win.c index 38f6abe..ca06495 100644 --- a/source/vid_win.c +++ b/source/vid_win.c @@ -797,6 +797,10 @@ Win_Shutdown ============ */ void Win_Shutdown( void ) { + if( win.flags & QVF_GAMMARAMP ) { + SetDeviceGammaRamp( win.dc, win.gamma_orig ); + } + // prevents leaving empty slots in the taskbar ShowWindow( win.wnd, SW_SHOWNORMAL ); ReleaseDC( win.wnd, win.dc ); @@ -807,10 +811,6 @@ void Win_Shutdown( void ) { UnhookWindowsHookEx( win.kbdHook ); } - if( win.flags & QVF_GAMMARAMP ) { - SetDeviceGammaRamp( win.dc, win.gamma_orig ); - } - if( win.flags & QVF_FULLSCREEN ) { ChangeDisplaySettings( 0, 0 ); } |