diff options
author | 2023-02-02 01:51:08 +0100 | |
---|---|---|
committer | 2023-02-24 13:22:58 +0100 | |
commit | c8e8b1a7ba47ab13cef2dc7f300fbfcefe1e8a48 (patch) | |
tree | f91b9ee662c484f6ad978a7048192cf07e9624ae | |
parent | 6b707711469c7298bb363029a0c3d12a7834278c (diff) | |
download | iced-c8e8b1a7ba47ab13cef2dc7f300fbfcefe1e8a48.tar.gz iced-c8e8b1a7ba47ab13cef2dc7f300fbfcefe1e8a48.tar.bz2 iced-c8e8b1a7ba47ab13cef2dc7f300fbfcefe1e8a48.zip |
Use `bounds` directly for `measure` in text pipeline
-rw-r--r-- | wgpu/src/text.rs | 5 |
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, }); |