From b2b234e687b4b5af62b925068ffe76ff92180ec2 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Thu, 11 Jul 2019 08:24:26 +0000
Subject: [PATCH] No need for ascii chars anymore since we always use font 0
 for all the things.

---
 src/uifc/uifc32.c | 76 ++---------------------------------------------
 1 file changed, 2 insertions(+), 74 deletions(-)

diff --git a/src/uifc/uifc32.c b/src/uifc/uifc32.c
index a903a5088b..02fab648ec 100644
--- a/src/uifc/uifc32.c
+++ b/src/uifc/uifc32.c
@@ -156,60 +156,6 @@ static uifc_graphics_t cp437_chars = {
 	.help_hitanykey_right=0xc3,
 };
 
-static uifc_graphics_t ascii_chars = {
-	.background='#',
-	.help_char='?',
-	.close_char='X',
-	.up_arrow='^',
-	.down_arrow='v',
-	.button_left='[',
-	.button_right=']',
-
-	.list_top_left=',',
-	.list_top='-',
-	.list_top_right='.',
-	.list_separator_left='+',
-	.list_separator_right='+',
-	.list_horizontal_separator='-',
-	.list_left='|',
-	.list_right='|',
-	.list_bottom_left='`',
-	.list_bottom_right='\'',
-	.list_bottom='-',
-	.list_scrollbar_separator='|',
-
-	.input_top_left=',',
-	.input_top='-',
-	.input_top_right='.',
-	.input_left='|',
-	.input_right='|',
-	.input_bottom_left='`',
-	.input_bottom_right='\'',
-	.input_bottom='-',
-
-	.popup_top_left=',',
-	.popup_top='-',
-	.popup_top_right='.',
-	.popup_left='|',
-	.popup_right='|',
-	.popup_bottom_left='`',
-	.popup_bottom_right='\'',
-	.popup_bottom='-',
-
-	.help_top_left=',',
-	.help_top='-',
-	.help_top_right='.',
-	.help_left='|',
-	.help_right='|',
-	.help_bottom_left='`',
-	.help_bottom_right='\'',
-	.help_bottom='-',
-	.help_titlebreak_left='|',
-	.help_titlebreak_right='|',
-	.help_hitanykey_left='|',
-	.help_hitanykey_right='|',
-};
-
 /****************************************************************************/
 /* Initialization function, see uifc.h for details.							*/
 /* Returns 0 on success.													*/
@@ -262,26 +208,8 @@ int UIFCCALL uifcini32(uifcapi_t* uifcapi)
         return(-1);
 
     api=uifcapi;
-    if (api->chars == NULL) {
-		switch(getfont(1)) {
-			case -1:
-			case 0:
-			case 17:
-			case 18:
-			case 19:
-			case 25:
-			case 26:
-			case 27:
-			case 28:
-			case 29:
-			case 31:
-				api->chars = &cp437_chars;
-				break;
-			default:
-				api->chars = &ascii_chars;
-				break;
-		}
-	}
+    if (api->chars == NULL)
+	api->chars = &cp437_chars;
 
     /* install function handlers */
     api->bail=uifcbail;
-- 
GitLab