From: Holger Schemel Date: Mon, 3 Apr 2023 08:34:27 +0000 (+0200) Subject: fixed nasty bug that caused empty screen on game elements info screen X-Git-Tag: 4.3.5.4~3 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=4dda9ecc045a0247ee427cc0c2626ce9b0b802fe;p=rocksndiamonds.git fixed nasty bug that caused empty screen on game elements info screen No, this was not meant to be an April Fools' Day joke. --- diff --git a/src/screens.c b/src/screens.c index 47b37a34..60637697 100644 --- a/src/screens.c +++ b/src/screens.c @@ -179,7 +179,9 @@ #define MENU_SCREEN_INFO_SPACE_BOTTOM (menu.bottom_spacing_info[info_mode]) #define MENU_SCREEN_INFO_SPACE_LINE (menu.line_spacing_info[info_mode]) #define MENU_SCREEN_INFO_SPACE_EXTRA (menu.extra_spacing_info[info_mode]) -#define MENU_SCREEN_INFO_TILE_SIZE (menu.tile_size_info[info_mode]) +#define MENU_SCREEN_INFO_TILE_SIZE_RAW (menu.tile_size_info[info_mode]) +#define MENU_SCREEN_INFO_TILE_SIZE (MENU_SCREEN_INFO_TILE_SIZE_RAW > 0 ? \ + MENU_SCREEN_INFO_TILE_SIZE_RAW : TILEY) #define MENU_SCREEN_INFO_ENTRY_SIZE_RAW (menu.list_entry_size_info[info_mode]) #define MENU_SCREEN_INFO_ENTRY_SIZE (MAX(MENU_SCREEN_INFO_ENTRY_SIZE_RAW, \ MENU_SCREEN_INFO_TILE_SIZE))