diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-10-28 08:06:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-28 08:06:47 +0100 |
commit | a05d2d20ac42bd4c924375c2f76517394b37e483 (patch) | |
tree | 9618c0b2343435f45279405135896423d93f6c26 /platform/windows/os_windows.h | |
parent | 816341af25749e3c2ee1fad370c0c5785293f5b6 (diff) | |
parent | 034625ed9371693fdd94cf9228157645456307ee (diff) |
Merge pull request #33112 from Chaosus/fix_window_border
Fix invalid window border when toggled from fullscreen to windowed mode
Diffstat (limited to 'platform/windows/os_windows.h')
-rw-r--r-- | platform/windows/os_windows.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/windows/os_windows.h b/platform/windows/os_windows.h index 683896886b..b0e665e574 100644 --- a/platform/windows/os_windows.h +++ b/platform/windows/os_windows.h @@ -176,7 +176,7 @@ class OS_Windows : public OS { void _drag_event(float p_x, float p_y, int idx); void _touch_event(bool p_pressed, float p_x, float p_y, int idx); - void _update_window_style(bool repaint = true); + void _update_window_style(bool p_repaint = true, bool p_maximized = false); void _set_mouse_mode_impl(MouseMode p_mode); @@ -209,6 +209,7 @@ protected: bool minimized; bool borderless; bool console_visible; + bool was_maximized; public: LRESULT WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); |