mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-22 18:59:59 +08:00
Fix vscroll indicator (#295)
* Clear vscroll_indicator content before drawing it.
This commit is contained in:
parent
fc92f52b4c
commit
728976bdeb
@ -54,6 +54,7 @@ Element vscroll_indicator(Element child) {
|
||||
bool down = (2 * y - 0 >= start_y) && (2 * y - 0 <= start_y + size);
|
||||
|
||||
const char* c = up ? (down ? "┃" : "╹") : (down ? "╻" : " ");
|
||||
screen.PixelAt(x, y) = Pixel();
|
||||
screen.PixelAt(x, y).character = c;
|
||||
screen.PixelAt(x, y).inverted = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user