summaryrefslogtreecommitdiff
path: root/src/os/object/framebuffer.cc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-11-30 19:54:35 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-11-30 19:54:35 +0100
commit6f7002f23164031ed17f08de3a09193d35a53e63 (patch)
tree3d514c66b2a89fddee5cf367057b1f60d20dd66f /src/os/object/framebuffer.cc
parent40d020fd85c96bf861f4149e50c4bb4162c50240 (diff)
framebuffer: put: fix scroll calculation
Diffstat (limited to 'src/os/object/framebuffer.cc')
-rw-r--r--src/os/object/framebuffer.cc2
1 files changed, 1 insertions, 1 deletions
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++) {