From: Holger Schemel Date: Tue, 2 Oct 2018 19:10:08 +0000 (+0200) Subject: fixed calculating maximum length of string values in setup menu X-Git-Tag: 4.1.1.0~11 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=c780ff79e3b67ee1298ba4b258b8dfedec81acfa;p=rocksndiamonds.git fixed calculating maximum length of string values in setup menu --- diff --git a/src/screens.c b/src/screens.c index 127333bc..758b3f67 100644 --- a/src/screens.c +++ b/src/screens.c @@ -6509,7 +6509,7 @@ static void drawSetupValue(int screen_pos, int setup_info_pos_raw) } else if (type & TYPE_STRING) { - int max_value_len = (SCR_FIELDX - 2) * 2; + int max_value_len = (SXSIZE - 2 * TILEX) / font_width_default; xpos = MENU_SCREEN_START_XPOS;