From 4c5ff180d7da0fee23273cdbf2d3fc98ab19b3f9 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Tue, 6 Apr 2021 23:57:28 +0200 Subject: [PATCH] menu: Fix broken comparison that would always override user set menu resolution --- stage23/lib/gterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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