]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
changed scrollbar to look mediocre on both xterm and console, rather
authorewt <ewt>
Tue, 16 Apr 1996 22:30:24 +0000 (22:30 +0000)
committerewt <ewt>
Tue, 16 Apr 1996 22:30:24 +0000 (22:30 +0000)
then bad on the xterm but good on the console

scrollbar.c

index 66632ddcd0cfd266909135f412dc1942c85c05af..212b54158172c099742aab1c2f91cef504c9d971 100644 (file)
@@ -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);
 }