summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorLea <autoit4you@users.noreply.github.com>2024-05-18 09:22:16 +0200
committerLea Horn <git@autoit4you.de>2024-05-18 11:51:04 +0200
commit414cc6c89e66aa7869838398fcb92e7184031235 (patch)
tree2c976964aa6a2e6b134641fc7043256f5b48e2a8 /main
parentbd2300d77a6008167043f23fd91bcc562cde0a19 (diff)
downloadredot-engine-414cc6c89e66aa7869838398fcb92e7184031235.tar.gz
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
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 66706be745..9ce1249586 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -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;
}