aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-09-06 09:23:23 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-09-08 09:50:08 -0400
commit872993f95d79700662a5cab4aae8c167751c9486 (patch)
tree1426e93dcc431a4387327d64c167714dc6f0b82d
parent3984c81faae58233ce9068c6bf9c673b3b99ee30 (diff)
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.
-rw-r--r--types/wlr_scene.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types/wlr_scene.c b/types/wlr_scene.c
index 30faa9f0..e72cd21c 100644
--- a/types/wlr_scene.c
+++ b/types/wlr_scene.c
@@ -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);
}