summaryrefslogtreecommitdiffstats
path: root/newt/build/newt-0.52.2-scrollbars.patch
blob: 9cf8542fbfb978012934be30b5ba81b4beb7abb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -ru newt-0.51.6/scrollbar.c newt-0.51.6-new/scrollbar.c
--- newt-0.51.6/scrollbar.c	2002-06-26 22:17:46.000000000 -0400
+++ newt-0.51.6-new/scrollbar.c	2005-08-06 22:33:00.000000000 -0400
@@ -47,7 +47,7 @@
     sb = malloc(sizeof(*sb));
     co->data = sb;
 
-    if (!strcmp(getenv("TERM"), "linux") && height >= 2) {
+    if (height >= 2) {
 	sb->arrows = 1;
 	sb->curr = 1;
     } else {
@@ -100,7 +100,7 @@
 
 static void sbDrawThumb(newtComponent co, int isOn) {
     struct scrollbar * sb = co->data;
-    SLtt_Char_Type ch = isOn ? '#' : SLSMG_CKBRD_CHAR;
+    SLtt_Char_Type ch = isOn ? SLSMG_BLOCK_CHAR : SLSMG_CKBRD_CHAR;
 
     if (!co->isMapped) return;