Fix vscroll indicator (#295)

* Clear vscroll_indicator content before drawing it.
This commit is contained in:
Arthur Sonzogni
2022-01-05 12:04:03 +01:00
committed by GitHub
parent fc92f52b4c
commit 728976bdeb

View File

@@ -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;
}