summaryrefslogtreecommitdiffstats
path: root/wgpu/src/text.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-02-02 01:51:08 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-02-24 13:22:58 +0100
commitc8e8b1a7ba47ab13cef2dc7f300fbfcefe1e8a48 (patch)
treef91b9ee662c484f6ad978a7048192cf07e9624ae /wgpu/src/text.rs
parent6b707711469c7298bb363029a0c3d12a7834278c (diff)
downloadiced-c8e8b1a7ba47ab13cef2dc7f300fbfcefe1e8a48.tar.gz
iced-c8e8b1a7ba47ab13cef2dc7f300fbfcefe1e8a48.tar.bz2
iced-c8e8b1a7ba47ab13cef2dc7f300fbfcefe1e8a48.zip
Use `bounds` directly for `measure` in text pipeline
Diffstat (limited to 'wgpu/src/text.rs')
-rw-r--r--wgpu/src/text.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/wgpu/src/text.rs b/wgpu/src/text.rs
index 1e2bf5c2..026a6d27 100644
--- a/wgpu/src/text.rs
+++ b/wgpu/src/text.rs
@@ -270,10 +270,7 @@ impl Pipeline {
content,
size: size,
font,
- bounds: Size {
- width: bounds.width,
- height: f32::INFINITY,
- },
+ bounds,
color: Color::BLACK,
});