From: mlichvar Date: Fri, 15 Sep 2006 13:23:58 +0000 (+0000) Subject: - improve scrollbar appearance (#174771) X-Git-Tag: r0-52-3~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b76e6cd68ac26b120a8f1ff3a49e3f72660ad67;p=thirdparty%2Fnewt.git - improve scrollbar appearance (#174771) --- diff --git a/scrollbar.c b/scrollbar.c index 1a737a4..96ed513 100644 --- a/scrollbar.c +++ b/scrollbar.c @@ -47,7 +47,7 @@ newtComponent newtVerticalScrollbar(int left, int top, int height, 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 sbDraw(newtComponent co) { 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;