drivers/graphics/console-draw: Use font height rather than width where necessary

This fixes major corruption of the drawn text.
This commit is contained in:
bjorn3
2026-05-24 20:36:18 +02:00
parent 54b2697a6d
commit 5701459db4
+1 -1
View File
@@ -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;