mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Use GLOBAL_GET for window_{height,width}_override
Before ProjectSettings::get was used, resulting in ignoring feature tag overrides for display/window/size/window_width_override and display/window/size/window_height_override. Fixes #92062
This commit is contained in:
parent
bd2300d77a
commit
414cc6c89e
@ -2196,11 +2196,11 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
||||
|
||||
if (globals->has_setting("display/window/size/window_width_override") &&
|
||||
globals->has_setting("display/window/size/window_height_override")) {
|
||||
int desired_width = globals->get("display/window/size/window_width_override");
|
||||
int desired_width = GLOBAL_GET("display/window/size/window_width_override");
|
||||
if (desired_width > 0) {
|
||||
window_size.width = desired_width;
|
||||
}
|
||||
int desired_height = globals->get("display/window/size/window_height_override");
|
||||
int desired_height = GLOBAL_GET("display/window/size/window_height_override");
|
||||
if (desired_height > 0) {
|
||||
window_size.height = desired_height;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user