From 1b802d92511dad4edcb6d1a0f3506a7646fe714b Mon Sep 17 00:00:00 2001 From: emersion Date: Thu, 12 Apr 2018 19:38:33 -0400 Subject: Make wlr_renderer_scissor take normal coords instead of upside-down ones --- rootston/output.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'rootston') 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); -- cgit v1.2.3