mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-08 12:40:28 +00:00
Use mvwvline() to draw scrollbar -- maybe this will fix the problem some
FreeBSD users have?
This commit is contained in:
parent
6fdb0ceaeb
commit
141a8d20d8
@ -76,11 +76,7 @@ void Scrollbar::Draw(ListWindow* list, Window* target) {
|
||||
yOffset = (int) (range * percent) + minY;
|
||||
}
|
||||
|
||||
for (int i = from; i < to; i++) {
|
||||
wmove(frame, i, xOffset);
|
||||
if (i == yOffset) wattron(frame, A_REVERSE);
|
||||
waddch(frame, (i == yOffset) ? ' ' : ACS_VLINE);
|
||||
if (i == yOffset) wattroff(frame, A_REVERSE);
|
||||
}
|
||||
mvwvline(frame, from, xOffset, 0, to - from);
|
||||
mvwaddch(frame, yOffset, xOffset, ' ' | A_REVERSE);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user