diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-11-30 19:54:35 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-11-30 19:54:35 +0100 |
commit | 6f7002f23164031ed17f08de3a09193d35a53e63 (patch) | |
tree | 3d514c66b2a89fddee5cf367057b1f60d20dd66f /src/os/object | |
parent | 40d020fd85c96bf861f4149e50c4bb4162c50240 (diff) |
framebuffer: put: fix scroll calculation
Diffstat (limited to 'src/os/object')
-rw-r--r-- | src/os/object/framebuffer.cc | 2 |
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++) { |