Transform clip_bounds in wgpu::text
This commit is contained in:
parent
7cba9a3e7f
commit
d8dffa411b
1 changed files with 3 additions and 2 deletions
|
|
@ -234,8 +234,9 @@ impl Pipeline {
|
||||||
alignment::Vertical::Bottom => bounds.y - bounds.height,
|
alignment::Vertical::Bottom => bounds.y - bounds.height,
|
||||||
};
|
};
|
||||||
|
|
||||||
let clip_bounds =
|
let clip_bounds = layer_bounds.intersection(
|
||||||
layer_bounds.intersection(&(clip_bounds * scale_factor))?;
|
&(clip_bounds * transformation * scale_factor),
|
||||||
|
)?;
|
||||||
|
|
||||||
Some(glyphon::TextArea {
|
Some(glyphon::TextArea {
|
||||||
buffer,
|
buffer,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue