summaryrefslogtreecommitdiffstats
path: root/wgpu/src/renderer/text.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-10-30 05:00:12 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-10-30 05:00:12 +0100
commitfedcab6f4f5ffd3a6dfffe7dd41c58df2e314099 (patch)
tree171779a050b783dde926142027ae805a59366ab3 /wgpu/src/renderer/text.rs
parent63cd0fd8eb1eebae8de7d5141c846fc4ea55d702 (diff)
downloadiced-fedcab6f4f5ffd3a6dfffe7dd41c58df2e314099.tar.gz
iced-fedcab6f4f5ffd3a6dfffe7dd41c58df2e314099.tar.bz2
iced-fedcab6f4f5ffd3a6dfffe7dd41c58df2e314099.zip
Handle some `TextInput` events
Diffstat (limited to '')
-rw-r--r--wgpu/src/renderer/text.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/wgpu/src/renderer/text.rs b/wgpu/src/renderer/text.rs
index 8fbade4e..606ebe9f 100644
--- a/wgpu/src/renderer/text.rs
+++ b/wgpu/src/renderer/text.rs
@@ -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)
};