draw: Fix a bug I forgot the details of
This commit is contained in:
+1
-1
@@ -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() {
|
for (i, glyph) in glyphs.iter().enumerate() {
|
||||||
if i == cursor {
|
if i == cursor {
|
||||||
self.draw_cursor(buf, c, x_off as u32, height)?;
|
self.draw_cursor(buf, c, x_off as u32, height)?;
|
||||||
|
|||||||
Reference in New Issue
Block a user