summaryrefslogtreecommitdiff
path: root/stage3/font.c
diff options
context:
space:
mode:
authorLizzy Fleckenstein <lizzy@vlhl.dev>2023-12-10 15:54:03 +0100
committerLizzy Fleckenstein <lizzy@vlhl.dev>2023-12-10 15:54:03 +0100
commit8062c3c1e840b9fab9f9901d87d7d03cee3de3f9 (patch)
treec6b21ecc1b30cbf276ac56e8ce46706ec6e427a9 /stage3/font.c
parent28cd326f7fde52d49cb391d521802018a5bcee06 (diff)
downloadcuddles-8062c3c1e840b9fab9f9901d87d7d03cee3de3f9.tar.xz
clear screen on overflow
Diffstat (limited to 'stage3/font.c')
-rw-r--r--stage3/font.c4
1 files changed, 3 insertions, 1 deletions
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)