diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-11-14 01:13:18 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-11-14 01:13:18 -0800 |
commit | 7109af42797924bc0a6bba94937369bd03033c8e (patch) | |
tree | ebf2a96161e049486b520506d3f37592b2e01a1b | |
parent | 2341ddfcd96f72cc4ee2c4f1e091ff2306caf62a (diff) |
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.
-rw-r--r-- | src/rmd_poll_events.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |