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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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