diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-07-24 17:55:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-24 17:55:25 +0200 |
commit | dc3c32b488f7ffd40985f3b84c60fe74fbc43bf6 (patch) | |
tree | 5f1ceb9be2887497773523fe416198882ee1ecd0 | |
parent | f8f3f302487d14976dca8181148ec189bccbc658 (diff) | |
parent | 7be70c5a3c4645e50f2287fcdc777a282153b3c0 (diff) |
Merge pull request #5894 from vnen/windows-set-position
Avoid changing position when the window is fullscreen
-rw-r--r-- | platform/windows/os_windows.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 6aee0d2399..a3858fe641 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -1476,6 +1476,7 @@ Point2 OS_Windows::get_window_position() const{ } void OS_Windows::set_window_position(const Point2& p_position){ + if (video_mode.fullscreen) return; RECT r; GetWindowRect(hWnd,&r); MoveWindow(hWnd,p_position.x,p_position.y,r.right-r.left,r.bottom-r.top,TRUE); |