From 7109af42797924bc0a6bba94937369bd03033c8e Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 14 Nov 2020 01:13:18 -0800 Subject: poll_events: actually store the result of uv_align() Spurious artifacts in the chroma channels when the damage regions weren't aligned showed up because this function wasn't actually doing anything. --- src/rmd_poll_events.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/rmd_poll_events.c') diff --git a/src/rmd_poll_events.c b/src/rmd_poll_events.c index 3639751..af1fecf 100644 --- a/src/rmd_poll_events.c +++ b/src/rmd_poll_events.c @@ -130,6 +130,11 @@ static void uv_align(XRectangle *cliprect, XRectangle *xrect) if (rel.height % 2 && rel.height + rel.y < cliprect->y + cliprect->height) rel.height++; + + xrect->x = rel.x + cliprect->x; + xrect->y = rel.y + cliprect->y; + xrect->width = rel.width; + xrect->height = rel.height; } -- cgit v1.2.3