mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-26 11:39:47 +01:00
scene: fix wlr_scene_render_output offset
When providing non-zero layout-local coordinates to wlr_scene_render_output, the viewport should be translated by the given values. However the viewport was translated by the opposite values: when giving 42,42 the viewport's position would be set to -42,-42.
This commit is contained in:
parent
3984c81faa
commit
872993f95d
1 changed files with 1 additions and 1 deletions
|
@ -426,7 +426,7 @@ void wlr_scene_render_output(struct wlr_scene *scene, struct wlr_output *output,
|
|||
.output = output,
|
||||
.damage = damage,
|
||||
};
|
||||
scene_node_for_each_node(&scene->node, lx, ly,
|
||||
scene_node_for_each_node(&scene->node, -lx, -ly,
|
||||
render_node_iterator, &data);
|
||||
wlr_renderer_scissor(renderer, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue