From: Holger Schemel Date: Fri, 20 Apr 2018 19:47:40 +0000 (+0200) Subject: added using narrow fonts for input setup if screen width is less than default X-Git-Tag: 4.1.1.0~188 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=c9d4e622c3cb9860ad8e8d95c67a36fdf1f48e0f;p=rocksndiamonds.git added using narrow fonts for input setup if screen width is less than default --- diff --git a/src/screens.c b/src/screens.c index 34625ee6..f68b9d24 100644 --- a/src/screens.c +++ b/src/screens.c @@ -6262,6 +6262,13 @@ static void drawPlayerSetupInputInfo(int player_nr, boolean active) int font_nr_off = FONT_VALUE_OLD; int pos = 4; + if (SCR_FIELDX < SCR_FIELDX_DEFAULT) + { + font_nr_info = FONT_MENU_2; + font_nr_on = FONT_VALUE_NARROW; + font_nr_off = FONT_VALUE_OLD_NARROW; + } + custom_key = setup.input[player_nr].key; DrawText(mSX + 11 * 32, mSY + 2 * 32, int2str(player_nr + 1, 1), @@ -6472,6 +6479,12 @@ static boolean CustomizeKeyboardMain(int player_nr) int font_nr_new = FONT_VALUE_1; int success = FALSE; + if (SCR_FIELDX < SCR_FIELDX_DEFAULT) + { + font_nr_old = FONT_VALUE_OLD_NARROW; + font_nr_new = FONT_VALUE_NARROW; + } + /* read existing key bindings from player setup */ custom_key = setup.input[player_nr].key;