added using narrow fonts for input setup if screen width is less than default
authorHolger Schemel <info@artsoft.org>
Fri, 20 Apr 2018 19:47:40 +0000 (21:47 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 20 Apr 2018 19:48:03 +0000 (21:48 +0200)
src/screens.c

index 34625ee664c158276e1dc3881ed654218ec2ca8d..f68b9d24172e6b8ed4ed1e9742bcd055c6553c7d 100644 (file)
@@ -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;