Adjust console text height by font baseline offset

This fixes having leftover pixels on screen bottom when scrolling the
console up.
This commit is contained in:
Josh Holtrop 2023-09-13 10:52:24 -04:00
parent d04c5444c7
commit 3d911ab191

View File

@ -81,7 +81,7 @@ struct Console
private static void render_char(size_t x, size_t y, char ch) private static void render_char(size_t x, size_t y, char ch)
{ {
const(CharInfo) * ci = &Kfont.chars[ch]; const(CharInfo) * ci = &Kfont.chars[ch];
Fb.blit_alpha_bitmap(fb_x(x) + ci.left, fb_y(y) + ci.top - ci.height, ci.bitmap, ci.width, ci.height); Fb.blit_alpha_bitmap(fb_x(x) + ci.left, fb_y(y) + Kfont.baseline_offset + ci.top - ci.height, ci.bitmap, ci.width, ci.height);
} }
/** /**