Fix mirroring with scale on target output

The actual render will pass a scale other than 1.0 here, so this needs
to do the same.
This commit is contained in:
Ian Douglas Scott 2025-01-17 14:11:56 -08:00 committed by Victoria Brekenfeld
parent 3f5c64f50f
commit 9963887ac5

View file

@ -1112,7 +1112,8 @@ impl SurfaceThreadState {
None,
Kind::Unspecified,
);
let texture_geometry = texture_elem.geometry(1.0.into());
let texture_geometry =
texture_elem.geometry(self.output.current_scale().fractional_scale().into());
elements = constrain_render_elements(
std::iter::once(texture_elem),
(0, 0),