Rework Kfont to store glyph top as offset from top of text row
This commit is contained in:
1 parent
4fcea6a283
commit
4c67faaad4
2 files changed
+76
-15
No files matched your search
+1
-1
@@ -86,7 +86,7 @@ struct Console
|
||||
private static void render_char(size_t x, size_t y, char ch)
|
||||
{
|
||||
const(CharInfo) * ci = &Kfont.chars[ch];
|
||||
Fb.blit_alpha_bitmap(fb_x(x) + ci.left, fb_y(y) + Kfont.line_height - Kfont.baseline_offset - ci.top, ci.bitmap, ci.width, ci.height);
|
||||
Fb.blit_alpha_bitmap(fb_x(x) + ci.left, fb_y(y) + ci.top, ci.bitmap, ci.width, ci.height);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user