From 3d911ab191bfcba2842c01af7ef8b26096e8b360 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Wed, 13 Sep 2023 10:52:24 -0400 Subject: [PATCH] Adjust console text height by font baseline offset This fixes having leftover pixels on screen bottom when scrolling the console up. --- src/hulk/console.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hulk/console.d b/src/hulk/console.d index db08f8d..dd18cb6 100644 --- a/src/hulk/console.d +++ b/src/hulk/console.d @@ -81,7 +81,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) + 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); } /**