From: notting Date: Thu, 27 Jun 2002 02:17:46 +0000 (+0000) Subject: thou shalt not hardcode linedrawing characters X-Git-Tag: r0-50-37~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65dd376894b5afbabb2c588fd6abde9e6411c374;p=thirdparty%2Fnewt.git thou shalt not hardcode linedrawing characters --- diff --git a/scrollbar.c b/scrollbar.c index cb4bc27..1a737a4 100644 --- a/scrollbar.c +++ b/scrollbar.c @@ -79,17 +79,17 @@ static void sbDraw(newtComponent co) { SLsmg_set_char_set(1); if (sb->arrows) { newtGotorc(co->top, co->left); - SLsmg_write_char('\x2d'); + SLsmg_write_char(SLSMG_UARROW_CHAR); for (i = 1; i < co->height - 1; i++) { newtGotorc(i + co->top, co->left); - SLsmg_write_char('\x61'); + SLsmg_write_char(SLSMG_CKBRD_CHAR); } newtGotorc(co->top + co->height - 1, co->left); - SLsmg_write_char('\x2e'); + SLsmg_write_char(SLSMG_DARROW_CHAR); } else { for (i = 0; i < co->height; i++) { newtGotorc(i + co->top, co->left); - SLsmg_write_char('\x61'); + SLsmg_write_char(SLSMG_CKBRD_CHAR); } } @@ -100,7 +100,7 @@ static void sbDraw(newtComponent co) { static void sbDrawThumb(newtComponent co, int isOn) { struct scrollbar * sb = co->data; - char ch = isOn ? '#' : '\x61'; + SLtt_Char_Type ch = isOn ? '#' : SLSMG_CKBRD_CHAR; if (!co->isMapped) return;