From 971cbeaa19693a586e0204b236c3c55ec82be8cd Mon Sep 17 00:00:00 2001 From: random human Date: Mon, 24 Sep 2018 20:22:52 +0530 Subject: wlr_surface: fix surface damage transformation Damage tracking on transformed surfaces now work (see "weston-simple-damage --rotation=90"), using either of buffer or surface damage. --- rootston/output.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'rootston/output.c') diff --git a/rootston/output.c b/rootston/output.c index 4207f0d0..6a6b25c4 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -696,8 +696,7 @@ static void damage_from_surface(struct wlr_surface *surface, int sx, int sy, int center_x = box.x + box.width/2; int center_y = box.y + box.height/2; - enum wl_output_transform transform = - wlr_output_transform_invert(surface->current.transform); + enum wl_output_transform transform = surface->current.transform; pixman_region32_t damage; pixman_region32_init(&damage); -- cgit v1.2.3