Explorar o código

Merge pull request #5894 from vnen/windows-set-position

Avoid changing position when the window is fullscreen
Rémi Verschelde %!s(int64=9) %!d(string=hai) anos
pai
achega
dc3c32b488
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      platform/windows/os_windows.cpp

+ 1 - 0
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);