From 8062c3c1e840b9fab9f9901d87d7d03cee3de3f9 Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Sun, 10 Dec 2023 15:54:03 +0100 Subject: clear screen on overflow --- stage3/font.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'stage3') diff --git a/stage3/font.c b/stage3/font.c index e982aec..43f2f02 100644 --- a/stage3/font.c +++ b/stage3/font.c @@ -49,8 +49,10 @@ static void fix_cursor() cursor_y++; } - while (cursor_y >= screen_height) + while (cursor_y >= screen_height) { + gfx_set_area(0, 0, gfx_info->width, gfx_info->height, 0xFF000000); cursor_y -= screen_height; + } } void print_char(char c) -- cgit v1.2.3