Fixed restoration of window position with OpenGL renderer

Software renderer was not affected as it has maximize window button enabled
This commit is contained in:
alexey.lysiuk 2016-02-04 11:57:26 +02:00
parent 0c8a817df4
commit 70e569f79c

View file

@ -299,7 +299,8 @@ void I_SaveWindowedPos ()
return;
}
// Make sure we only save the window position if it's not fullscreen.
if ((GetWindowLong (Window, GWL_STYLE) & WS_OVERLAPPEDWINDOW) == WS_OVERLAPPEDWINDOW)
static const int WINDOW_STYLE = WS_OVERLAPPEDWINDOW & ~WS_MAXIMIZEBOX;
if ((GetWindowLong (Window, GWL_STYLE) & WINDOW_STYLE) == WINDOW_STYLE)
{
RECT wrect;