diff options
author | random human <random.bored.human@gmail.com> | 2018-09-24 20:22:52 +0530 |
---|---|---|
committer | random human <random.bored.human@gmail.com> | 2018-09-24 22:03:41 +0530 |
commit | 971cbeaa19693a586e0204b236c3c55ec82be8cd (patch) | |
tree | 3ec82ed1705aba5c7bc4f04a84c1a05c41a8cc1a /rootston | |
parent | f5658c2ca2b46b876ffeeaaff3c43d7073536244 (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')
-rw-r--r-- | rootston/output.c | 3 |
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); |