summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-19 13:26:09 +0200
committerGitHub <noreply@github.com>2022-07-19 13:26:09 +0200
commit6ec21d89692e33495711a81b00df5d70319274fc (patch)
treea4e7d04f75c70172edce4271caa24bfcb14e4d01
parent7fd29b5464350f13df32084fd1c367a9b946cf8e (diff)
parent680b5f1afb46a7650bcb0e2799b0e9f41c279ec3 (diff)
Merge pull request #63194 from bruvzg/fix_fs_pos
-rw-r--r--platform/windows/display_server_windows.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/windows/display_server_windows.cpp b/platform/windows/display_server_windows.cpp
index 91e0fbe0dc..f9988b23bc 100644
--- a/platform/windows/display_server_windows.cpp
+++ b/platform/windows/display_server_windows.cpp
@@ -3458,6 +3458,12 @@ DisplayServer::WindowID DisplayServerWindows::_create_window(WindowMode p_mode,
windows.erase(id);
ERR_FAIL_V_MSG(INVALID_WINDOW_ID, "Failed to create Windows OS window.");
}
+ if (p_mode == WINDOW_MODE_FULLSCREEN || p_mode == WINDOW_MODE_EXCLUSIVE_FULLSCREEN) {
+ wd.fullscreen = true;
+ if (p_mode == WINDOW_MODE_FULLSCREEN) {
+ wd.multiwindow_fs = true;
+ }
+ }
if (p_mode != WINDOW_MODE_FULLSCREEN && p_mode != WINDOW_MODE_EXCLUSIVE_FULLSCREEN) {
wd.pre_fs_valid = true;
}