:: commit 4c5ff180d7da0fee23273cdbf2d3fc98ab19b3f9

mintsuki <mintsuki@protonmail.com> — 2021-04-06 21:57

parents: bfc613bcbb

menu: Fix broken comparison that would always override user set menu resolution

diff --git a/stage23/lib/gterm.c b/stage23/lib/gterm.c
index 71af6ab8..f9d1e73e 100644
--- a/stage23/lib/gterm.c
+++ b/stage23/lib/gterm.c
@@ -346,7 +346,7 @@ bool gterm_init(int *_rows, int *_cols, uint32_t *_colours, int _margin, int _ma
     int req_width = 0, req_height = 0, req_bpp = 0;
 
     char *menu_resolution = config_get_value(NULL, 0, "MENU_RESOLUTION");
-    if (menu_resolution == NULL)
+    if (menu_resolution != NULL)
         parse_resolution(&req_width, &req_height, &req_bpp, menu_resolution);
 
     // We force bpp to 32
tab: 248 wrap: offon