summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-18 17:41:48 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-18 17:41:48 +0200
commitf58a96cfa20530268a9b35efc8cd7ddad1900a8b (patch)
treed816e3714e3dd91c9daef6478f27a6cbdce8cd11 /main
parent7437b9a833f6e35417c189988a396b34ad6d564a (diff)
parent414cc6c89e66aa7869838398fcb92e7184031235 (diff)
downloadredot-engine-f58a96cfa20530268a9b35efc8cd7ddad1900a8b.tar.gz
Merge pull request #92075 from autoit4you/fix-92062
Use `GLOBAL_GET` for `window_{height,width}_override`
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 b755cc9124..65f637d778 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;
}