summaryrefslogtreecommitdiffstats
path: root/graphics/src/renderer.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-06-28 00:35:37 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-06-28 00:35:37 +0200
commit78ad365db232e53cbdf12105e40c1dbe87a3238c (patch)
tree4537c725dd9d15ca07d03403d083d3850841654a /graphics/src/renderer.rs
parentaf62ec1c877d0d6d29277fb7dcfd4c681fd499af (diff)
downloadiced-78ad365db232e53cbdf12105e40c1dbe87a3238c.tar.gz
iced-78ad365db232e53cbdf12105e40c1dbe87a3238c.tar.bz2
iced-78ad365db232e53cbdf12105e40c1dbe87a3238c.zip
Reuse entries in `text::Cache` in `iced_wgpu`
Diffstat (limited to 'graphics/src/renderer.rs')
-rw-r--r--graphics/src/renderer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/renderer.rs b/graphics/src/renderer.rs
index 4241d45c..7e70a766 100644
--- a/graphics/src/renderer.rs
+++ b/graphics/src/renderer.rs
@@ -133,7 +133,7 @@ where
font: Font,
bounds: Size,
shaping: text::Shaping,
- ) -> (f32, f32) {
+ ) -> Size {
self.backend().measure(
content,
size,