From 5701459db45bd942a23b6ed15f08e5e239591e0b Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 24 May 2026 20:36:18 +0200 Subject: [PATCH] drivers/graphics/console-draw: Use font height rather than width where necessary This fixes major corruption of the drawn text. --- drivers/graphics/console-draw/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/graphics/console-draw/src/lib.rs b/drivers/graphics/console-draw/src/lib.rs index 15d105d8d0..4d907446dc 100644 --- a/drivers/graphics/console-draw/src/lib.rs +++ b/drivers/graphics/console-draw/src/lib.rs @@ -398,7 +398,7 @@ impl TextScreen { for raw_y in 0..h { let y = if from_y > to_y { raw_y } else { h - raw_y - 1 }; - for pixel_y in 0..self.font.width { + for pixel_y in 0..self.font.height { { let off_from = ((from_y + y) * self.font.height + pixel_y) * width + from_x * self.font.width;