From: ewt Date: Tue, 16 Apr 1996 22:30:24 +0000 (+0000) Subject: changed scrollbar to look mediocre on both xterm and console, rather X-Git-Tag: 0-1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28dfd928db82cf312f856fd0b1f446daaece7214;p=thirdparty%2Fnewt.git changed scrollbar to look mediocre on both xterm and console, rather then bad on the xterm but good on the console --- diff --git a/scrollbar.c b/scrollbar.c index 66632dd..212b541 100644 --- a/scrollbar.c +++ b/scrollbar.c @@ -64,7 +64,7 @@ static void sbDraw(newtComponent co) { SLsmg_set_char_set(1); for (i = 0; i < co->height; i++) { newtGotorc(i + co->top, co->left); - SLsmg_write_char('\150'); + SLsmg_write_char('\x61'); } SLsmg_set_char_set(0); @@ -74,16 +74,17 @@ static void sbDraw(newtComponent co) { static void sbDrawThumb(newtComponent co, int isOn) { struct scrollbar * sb = co->data; + char ch = isOn ? '#' : '\x61'; newtGotorc(sb->curr + co->top, co->left); SLsmg_set_char_set(1); - if (isOn) + /*if (isOn) SLsmg_set_color(sb->csThumb); - else + else*/ SLsmg_set_color(sb->cs); - SLsmg_write_char('\150'); + SLsmg_write_char(ch); SLsmg_set_char_set(0); }