Skip to content

Commit

Permalink
Merge pull request #92075 from autoit4you/fix-92062
Browse files Browse the repository at this point in the history
Use `GLOBAL_GET` for `window_{height,width}_override`
  • Loading branch information
akien-mga committed May 18, 2024
2 parents 7437b9a + 414cc6c commit f58a96c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f58a96c

Please sign in to comment.