diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-13 09:32:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-13 09:32:41 -0400 |
commit | 63763d327969a17af43ccaf8fe4c6da941f8efcb (patch) | |
tree | 719a97d6bc8c35803091a11a8c7c9adb44d83a9c /rootston | |
parent | bcf5da5cd7ea61679309c871e52468b335f57cb5 (diff) | |
parent | 1b802d92511dad4edcb6d1a0f3506a7646fe714b (diff) |
Merge pull request #862 from emersion/renderer-scissor-upside-down
Make wlr_renderer_scissor take normal coords instead of upside-down ones
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/output.c | 5 |
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); |