summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2016-07-24 12:07:59 -0300
committerGeorge Marques <george@gmarqu.es>2016-07-24 12:07:59 -0300
commit7be70c5a3c4645e50f2287fcdc777a282153b3c0 (patch)
treeb68256a05b6fc52506dd5f1b377fc87d1e38acc4
parent8fbe804bd17f919f53daae70a229c07ca4d8a355 (diff)
Avoid changing position when the window is fullscreen
-rw-r--r--platform/windows/os_windows.cpp1
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);