mirror of
https://github.com/clangen/musikcube.git
synced 2025-03-12 07:13:23 +00:00
Use correct character type when using waddch() in ListWindow drawing the
scrollbar. Hopefully this fixes redraw issues some users are seeing on BSD systems.
This commit is contained in:
parent
1721f8adf7
commit
23eae5a765
@ -94,11 +94,17 @@ void ListWindow::DecorateFrame() {
|
||||
offset = (int)(range * percent) + 1;
|
||||
}
|
||||
|
||||
auto frame = this->GetFrame();
|
||||
int x = getcurx(frame);
|
||||
int y = getcury(frame);
|
||||
|
||||
for (int i = 1; i < height - 1; i++) {
|
||||
int64_t ch = (i == offset) ? SCROLLER : ACS_VLINE;
|
||||
wmove(this->GetFrame(), i, this->GetWidth() - 1);
|
||||
waddch(this->GetFrame(), ch);
|
||||
chtype ch = (i == offset) ? SCROLLER : ACS_VLINE;
|
||||
wmove(frame, i, this->GetWidth() - 1);
|
||||
waddch(frame, ch);
|
||||
}
|
||||
|
||||
wmove(frame, y, x);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user