menu: Fix broken comparison that would always override user set menu resolution
This commit is contained in:
parent
bfc613bcbb
commit
4c5ff180d7
|
@ -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;
|
int req_width = 0, req_height = 0, req_bpp = 0;
|
||||||
|
|
||||||
char *menu_resolution = config_get_value(NULL, 0, "MENU_RESOLUTION");
|
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);
|
parse_resolution(&req_width, &req_height, &req_bpp, menu_resolution);
|
||||||
|
|
||||||
// We force bpp to 32
|
// We force bpp to 32
|
||||||
|
|
Loading…
Reference in New Issue