From 6f7002f23164031ed17f08de3a09193d35a53e63 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 30 Nov 2021 19:54:35 +0100 Subject: framebuffer: put: fix scroll calculation --- src/os/object/framebuffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/os/object/framebuffer.cc') diff --git a/src/os/object/framebuffer.cc b/src/os/object/framebuffer.cc index e605014..e7b914d 100644 --- a/src/os/object/framebuffer.cc +++ b/src/os/object/framebuffer.cc @@ -130,7 +130,7 @@ void Framebuffer::put(char c) if (fontX + glyph_w + 1 >= width) { put('\n'); } - if (fontY + fontSize > height) { + if (fontY + 8*fontSize > height) { scroll(); } for (unsigned char i = 0; i < glyph_w; i++) { -- cgit v1.2.3