From 7be70c5a3c4645e50f2287fcdc777a282153b3c0 Mon Sep 17 00:00:00 2001 From: George Marques Date: Sun, 24 Jul 2016 12:07:59 -0300 Subject: [PATCH] Avoid changing position when the window is fullscreen --- platform/windows/os_windows.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 6aee0d2399a..a3858fe641a 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);