Skip to content

Commit 224d9bf

Browse files
committed
Fix Embedded Game startup location on Windows
1 parent e948f52 commit 224d9bf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

platform/windows/display_server_windows.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6120,15 +6120,15 @@ DisplayServer::WindowID DisplayServerWindows::_create_window(WindowMode p_mode,
61206120
WindowRect.top = wpos.y;
61216121
WindowRect.bottom = wpos.y + p_rect.size.y;
61226122
}
6123+
}
61236124

6124-
WindowRect.left += offset.x;
6125-
WindowRect.right += offset.x;
6126-
WindowRect.top += offset.y;
6127-
WindowRect.bottom += offset.y;
6125+
WindowRect.left += offset.x;
6126+
WindowRect.right += offset.x;
6127+
WindowRect.top += offset.y;
6128+
WindowRect.bottom += offset.y;
61286129

6129-
if (p_mode != WINDOW_MODE_FULLSCREEN && p_mode != WINDOW_MODE_EXCLUSIVE_FULLSCREEN) {
6130-
AdjustWindowRectEx(&WindowRect, dwStyle, FALSE, dwExStyle);
6131-
}
6130+
if (p_mode != WINDOW_MODE_FULLSCREEN && p_mode != WINDOW_MODE_EXCLUSIVE_FULLSCREEN) {
6131+
AdjustWindowRectEx(&WindowRect, dwStyle, FALSE, dwExStyle);
61326132
}
61336133

61346134
WindowID id = window_id_counter;

0 commit comments

Comments
 (0)