aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-04-12 19:38:33 -0400
committeremersion <contact@emersion.fr>2018-04-12 19:38:33 -0400
commit1b802d92511dad4edcb6d1a0f3506a7646fe714b (patch)
tree95aa4f16e126454b41f73187fd264f569e559c39 /rootston
parent8f4039d799bc76612d2e440216cb9cb5242e2382 (diff)
Make wlr_renderer_scissor take normal coords instead of upside-down ones
Diffstat (limited to 'rootston')
-rw-r--r--rootston/output.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/rootston/output.c b/rootston/output.c
index 6babca24..75bbd928 100644
--- a/rootston/output.c
+++ b/rootston/output.c
@@ -177,9 +177,8 @@ static void scissor_output(struct roots_output *output, pixman_box32_t *rect) {
wlr_output_transformed_resolution(output->wlr_output, &ow, &oh);
// Scissor is in renderer coordinates, ie. upside down
- enum wl_output_transform transform = wlr_output_transform_compose(
- wlr_output_transform_invert(wlr_output->transform),
- WL_OUTPUT_TRANSFORM_FLIPPED_180);
+ enum wl_output_transform transform =
+ wlr_output_transform_invert(wlr_output->transform);
wlr_box_transform(&box, transform, ow, oh, &box);
wlr_renderer_scissor(renderer, &box);