summaryrefslogtreecommitdiffstats
path: root/wgpu/src/text.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-02 02:31:47 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-02-02 02:31:47 +0100
commitd8dffa411b8c1bbee538e3b51aae6f768e293789 (patch)
treee31fd3b128bb7d4df615318e2b0393906594818d /wgpu/src/text.rs
parent7cba9a3e7fe609ca29066fb4b2e5dbf5a1dbd316 (diff)
downloadiced-d8dffa411b8c1bbee538e3b51aae6f768e293789.tar.gz
iced-d8dffa411b8c1bbee538e3b51aae6f768e293789.tar.bz2
iced-d8dffa411b8c1bbee538e3b51aae6f768e293789.zip
Transform `clip_bounds` in `wgpu::text`
Diffstat (limited to 'wgpu/src/text.rs')
-rw-r--r--wgpu/src/text.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/wgpu/src/text.rs b/wgpu/src/text.rs
index cffe57cb..15179ff3 100644
--- a/wgpu/src/text.rs
+++ b/wgpu/src/text.rs
@@ -234,8 +234,9 @@ impl Pipeline {
alignment::Vertical::Bottom => bounds.y - bounds.height,
};
- let clip_bounds =
- layer_bounds.intersection(&(clip_bounds * scale_factor))?;
+ let clip_bounds = layer_bounds.intersection(
+ &(clip_bounds * transformation * scale_factor),
+ )?;
Some(glyphon::TextArea {
buffer,