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