Transform clip_bounds in wgpu::text

This commit is contained in:
Héctor Ramón Jiménez 2024-02-02 02:31:47 +01:00
parent 7cba9a3e7f
commit d8dffa411b
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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,