From 1dc961310e005f879ac3beb9d6a023ff18d831c7 Mon Sep 17 00:00:00 2001 From: pjht Date: Fri, 13 Sep 2024 10:09:17 -0500 Subject: [PATCH] Fix remnant of cursor not getting cleared, again --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 520cda6..6aede2e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -201,7 +201,7 @@ impl FramebufferWriter { .horizontal_line_metrics(12.0) .unwrap() .new_line_size - .ceil() as usize; + .ceil() as usize + 1; let char_width = font.metrics('a', 12.0).advance_width.ceil() as usize; println!( "Buffer is {}x{} px, ({} chars x {} lines)",