Handle some TextInput events

This commit is contained in:
Héctor Ramón Jiménez 2019-10-30 05:00:12 +01:00
parent 63cd0fd8eb
commit fedcab6f4f
7 changed files with 93 additions and 29 deletions

View file

@ -47,7 +47,7 @@ impl text::Renderer for Renderer {
let (width, height) = if let Some(bounds) =
glyph_brush.borrow_mut().glyph_bounds(&text)
{
(bounds.width(), bounds.height())
(bounds.width().round(), bounds.height().round())
} else {
(0.0, 0.0)
};