Avoid changing position when the window is fullscreen

This commit is contained in:
George Marques 2016-07-24 12:07:59 -03:00
parent 8fbe804bd1
commit 7be70c5a3c
No known key found for this signature in database
GPG key ID: 046BD46A3201E43D

View file

@ -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);