From 28dfd928db82cf312f856fd0b1f446daaece7214 Mon Sep 17 00:00:00 2001 From: ewt Date: Tue, 16 Apr 1996 22:30:24 +0000 Subject: [PATCH] changed scrollbar to look mediocre on both xterm and console, rather then bad on the xterm but good on the console --- scrollbar.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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); } -- 2.47.3