Skip to content

Commit 70eb62f

Browse files
authored
Merge pull request #103021 from Hilderin/fix-embedded-game-start-location-windows
Fix Embedded Game startup location on Windows
2 parents e567f49 + 224d9bf commit 70eb62f

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
@@ -6124,15 +6124,15 @@ DisplayServer::WindowID DisplayServerWindows::_create_window(WindowMode p_mode,
61246124
WindowRect.top = wpos.y;
61256125
WindowRect.bottom = wpos.y + p_rect.size.y;
61266126
}
6127+
}
61276128

6128-
WindowRect.left += offset.x;
6129-
WindowRect.right += offset.x;
6130-
WindowRect.top += offset.y;
6131-
WindowRect.bottom += offset.y;
6129+
WindowRect.left += offset.x;
6130+
WindowRect.right += offset.x;
6131+
WindowRect.top += offset.y;
6132+
WindowRect.bottom += offset.y;
61326133

6133-
if (p_mode != WINDOW_MODE_FULLSCREEN && p_mode != WINDOW_MODE_EXCLUSIVE_FULLSCREEN) {
6134-
AdjustWindowRectEx(&WindowRect, dwStyle, FALSE, dwExStyle);
6135-
}
6134+
if (p_mode != WINDOW_MODE_FULLSCREEN && p_mode != WINDOW_MODE_EXCLUSIVE_FULLSCREEN) {
6135+
AdjustWindowRectEx(&WindowRect, dwStyle, FALSE, dwExStyle);
61366136
}
61376137

61386138
WindowID id = window_id_counter;

0 commit comments

Comments
 (0)