mirror of
https://github.com/godotengine/godot.git
synced 2024-11-23 12:43:43 +00:00
[Windows] Set fullscreen flags on window creation.
This commit is contained in:
parent
7fd29b5464
commit
680b5f1afb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user