draw: Fix a bug I forgot the details of

This commit is contained in:
Kenny Levinsen
2023-11-10 14:01:14 +01:00
parent a882e26e2b
commit 1d1f7d3a8e
+1 -1
View File
@@ -163,7 +163,7 @@ impl<'a> Font<'a> {
}
}
let height = buf.get_bounds().3;
let height = self.size.ceil() as u32;
for (i, glyph) in glyphs.iter().enumerate() {
if i == cursor {
self.draw_cursor(buf, c, x_off as u32, height)?;