Fix applying local transformation to layer_bounds in iced_wgpu::text
This commit is contained in:
parent
43aafb7b79
commit
d0233da8a2
1 changed files with 2 additions and 4 deletions
|
|
@ -242,7 +242,7 @@ impl Pipeline {
|
|||
&mut self.atlas,
|
||||
&mut self.cache,
|
||||
text,
|
||||
layer_bounds,
|
||||
layer_bounds * layer_transformation,
|
||||
layer_transformation * *transformation,
|
||||
target_size,
|
||||
);
|
||||
|
|
@ -269,7 +269,7 @@ impl Pipeline {
|
|||
self.format,
|
||||
cache,
|
||||
layer_transformation * *transformation,
|
||||
layer_bounds,
|
||||
layer_bounds * layer_transformation,
|
||||
target_size,
|
||||
);
|
||||
}
|
||||
|
|
@ -388,8 +388,6 @@ fn prepare(
|
|||
})
|
||||
.collect();
|
||||
|
||||
let layer_bounds = layer_bounds * layer_transformation;
|
||||
|
||||
let text_areas = sections.iter().zip(allocations.iter()).filter_map(
|
||||
|(section, allocation)| {
|
||||
let (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue