From 7e186bab9ea984912df05edae58da1deda7c0a46 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Mon, 20 Sep 2004 04:23:49 +0000 Subject: [PATCH] More changes to allow 40 column mode. Change the 'X' back to the original (and better-looking) 0xfe (Little box) --- src/uifc/uifc32.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/uifc/uifc32.c b/src/uifc/uifc32.c index 8a0bf67e7f..d458c31185 100644 --- a/src/uifc/uifc32.c +++ b/src/uifc/uifc32.c @@ -221,16 +221,14 @@ int uifcini32(uifcapi_t* uifcapi) clrscr(); gettextinfo(&txtinfo); -#ifdef _WIN32 /* unsupported mode? */ if(txtinfo.screenheight<MIN_LINES /* || txtinfo.screenheight>MAX_LINES */ - || txtinfo.screenwidth<80) { + || txtinfo.screenwidth<40) { textmode(C80); /* set mode to 80x25*/ gettextinfo(&txtinfo); } -#endif api->scrn_len=txtinfo.screenheight; if(api->scrn_len<MIN_LINES) { @@ -564,7 +562,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar *(ptr++)='['; *(ptr++)=hclr|(bclr<<4); /* *(ptr++)='�'; */ - *(ptr++)='X'; + *(ptr++)=0xfe; *(ptr++)=lclr|(bclr<<4); *(ptr++)=']'; *(ptr++)=hclr|(bclr<<4); @@ -1419,7 +1417,7 @@ int uinput(int mode, int left, int top, char *prompt, char *str, in_win[2]='['; in_win[3]=hclr|(bclr<<4); /* in_win[4]='�'; */ - in_win[4]='X'; + in_win[4]=0xfe; in_win[5]=lclr|(bclr<<4); in_win[6]=']'; in_win[7]=hclr|(bclr<<4); @@ -2064,7 +2062,7 @@ void showbuf(int mode, int left, int top, int width, int height, char *title, ch tmp_buffer2[2]='['; tmp_buffer2[3]=hclr|(bclr<<4); /* tmp_buffer2[4]='�'; */ - tmp_buffer2[4]='X'; + tmp_buffer2[4]=0xfe; tmp_buffer2[5]=lclr|(bclr<<4); tmp_buffer2[6]=']'; tmp_buffer2[7]=hclr|(bclr<<4); -- GitLab