Fix applying local transformation to layer_bounds in iced_wgpu::text

This commit is contained in:
Héctor Ramón Jiménez 2024-04-12 18:37:38 +02:00
parent 43aafb7b79
commit d0233da8a2
No known key found for this signature in database
GPG key ID: 4C07CEC81AFA161F

View file

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