diff --git a/src/win32/hardware.cpp b/src/win32/hardware.cpp index 2c3fbdea48..bf1838ae29 100644 --- a/src/win32/hardware.cpp +++ b/src/win32/hardware.cpp @@ -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;