mirror of https://github.com/godotengine/godot
Merge pull request #103021 from Hilderin/fix-embedded-game-start-location-windows
Fix Embedded Game startup location on Windows
This commit is contained in:
commit
70eb62faf2
|
|
@ -6124,6 +6124,7 @@ DisplayServer::WindowID DisplayServerWindows::_create_window(WindowMode p_mode,
|
||||||
WindowRect.top = wpos.y;
|
WindowRect.top = wpos.y;
|
||||||
WindowRect.bottom = wpos.y + p_rect.size.y;
|
WindowRect.bottom = wpos.y + p_rect.size.y;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
WindowRect.left += offset.x;
|
WindowRect.left += offset.x;
|
||||||
WindowRect.right += offset.x;
|
WindowRect.right += offset.x;
|
||||||
|
|
@ -6133,7 +6134,6 @@ DisplayServer::WindowID DisplayServerWindows::_create_window(WindowMode p_mode,
|
||||||
if (p_mode != WINDOW_MODE_FULLSCREEN && p_mode != WINDOW_MODE_EXCLUSIVE_FULLSCREEN) {
|
if (p_mode != WINDOW_MODE_FULLSCREEN && p_mode != WINDOW_MODE_EXCLUSIVE_FULLSCREEN) {
|
||||||
AdjustWindowRectEx(&WindowRect, dwStyle, FALSE, dwExStyle);
|
AdjustWindowRectEx(&WindowRect, dwStyle, FALSE, dwExStyle);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
WindowID id = window_id_counter;
|
WindowID id = window_id_counter;
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue