aboutsummaryrefslogtreecommitdiff
path: root/rootston/output.c
diff options
context:
space:
mode:
authorrandom human <random.bored.human@gmail.com>2018-09-24 20:22:52 +0530
committerrandom human <random.bored.human@gmail.com>2018-09-24 22:03:41 +0530
commit971cbeaa19693a586e0204b236c3c55ec82be8cd (patch)
tree3ec82ed1705aba5c7bc4f04a84c1a05c41a8cc1a /rootston/output.c
parentf5658c2ca2b46b876ffeeaaff3c43d7073536244 (diff)
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.
Diffstat (limited to 'rootston/output.c')
-rw-r--r--rootston/output.c3
1 files changed, 1 insertions, 2 deletions
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);