Fix remnant of cursor not getting cleared, again

This commit is contained in:
pjht 2024-09-13 10:09:17 -05:00
parent dd3a331226
commit 1dc961310e
Signed by: pjht
GPG Key ID: CA239FC6934E6F3A

View File

@ -201,7 +201,7 @@ impl FramebufferWriter {
.horizontal_line_metrics(12.0) .horizontal_line_metrics(12.0)
.unwrap() .unwrap()
.new_line_size .new_line_size
.ceil() as usize; .ceil() as usize + 1;
let char_width = font.metrics('a', 12.0).advance_width.ceil() as usize; let char_width = font.metrics('a', 12.0).advance_width.ceil() as usize;
println!( println!(
"Buffer is {}x{} px, ({} chars x {} lines)", "Buffer is {}x{} px, ({} chars x {} lines)",