mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
render_helpers: Use upscale(-1)
This commit is contained in:
@@ -170,7 +170,7 @@ pub fn render_to_encompassing_texture(
|
||||
.reduce(|a, b| a.merge(b))
|
||||
.unwrap_or_default();
|
||||
let elements = elements.iter().rev().map(|ele| {
|
||||
RelocateRenderElement::from_element(ele, (-geo.loc.x, -geo.loc.y), Relocate::Relative)
|
||||
RelocateRenderElement::from_element(ele, geo.loc.upscale(-1), Relocate::Relative)
|
||||
});
|
||||
|
||||
let (texture, sync_point) =
|
||||
|
||||
Reference in New Issue
Block a user