diff options
author | Leandro Ribeiro <leandrohr@riseup.net> | 2019-11-27 13:02:24 -0300 |
---|---|---|
committer | Leandro Ribeiro <leandrohr@riseup.net> | 2019-11-27 13:47:09 -0300 |
commit | e28e8312117889ba37e3cb9d3b8979fe2e9912ac (patch) | |
tree | dd7f4d7d82e938b9506dc918bc6a1fffb19af769 | |
parent | adaf8c7410da89636c7318ab6b5856aa596a9cd2 (diff) | |
download | weston-e28e8312117889ba37e3cb9d3b8979fe2e9912ac.tar.gz weston-e28e8312117889ba37e3cb9d3b8979fe2e9912ac.tar.bz2 weston-e28e8312117889ba37e3cb9d3b8979fe2e9912ac.zip |
screenshooter: get previous_damage from data argument instead of weston_output
Instead of getting previous_damage from the weston_output struct, get it from
the frame_signal data argument. This will make possible to remove
previous_damage from weston_output after we decide what to do with
output->previous_damage usage in DRM backend.
Signed-off-by: Leandro Ribeiro <leandrohr@riseup.net>
-rw-r--r-- | libweston/screenshooter.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libweston/screenshooter.c b/libweston/screenshooter.c index 3b161c61..4ea519bd 100644 --- a/libweston/screenshooter.c +++ b/libweston/screenshooter.c @@ -287,8 +287,7 @@ weston_recorder_frame_notify(struct wl_listener *listener, void *data) pixman_region32_init(&damage); pixman_region32_init(&transformed_damage); - pixman_region32_intersect(&damage, &output->region, - &output->previous_damage); + pixman_region32_intersect(&damage, &output->region, data); pixman_region32_translate(&damage, -output->x, -output->y); weston_transformed_region(output->width, output->height, output->transform, output->current_scale, |