Rework scroll window implementation
This complete rewrite of the scroll window implementation decouples scroll windows from every other window abstraction layer we use. Note that this leads to some code duplication. The long-term purpose of this rewrite, however, is to eventually make every panel use scroll windows. This makes for a huge cleanup of the UI code. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
@@ -499,7 +499,7 @@ void
|
||||
draw_scrollbar(WINDOW * win, int y, int x, int length,
|
||||
int bar_top, int bar_bottom, unsigned hilt)
|
||||
{
|
||||
mvwvline(win, bar_top, x, ACS_VLINE, bar_bottom - bar_top);
|
||||
mvwvline(win, bar_top, x, ACS_VLINE, bar_bottom - bar_top + 1);
|
||||
if (hilt)
|
||||
custom_apply_attr(win, ATTR_HIGHEST);
|
||||
wattron(win, A_REVERSE);
|
||||
|
||||
Reference in New Issue
Block a user