mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-02-02 19:31:23 +00:00
Merge pull request #38 from alexey-lysiuk/restore_window_pos
Fixed restoration of window position with OpenGL renderer
This commit is contained in:
commit
d8f880285a
1 changed files with 2 additions and 1 deletions
|
@ -299,7 +299,8 @@ void I_SaveWindowedPos ()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Make sure we only save the window position if it's not fullscreen.
|
// 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;
|
RECT wrect;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue