summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-09-14 14:06:38 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-09-14 14:06:38 +0100
commit8e9d64203428b344433ac8f86dc1f06d2c32529a (patch)
tree055496b095badb0152d923fa4806a6aeab811c95
parent6ee9969f0e99975a24e113af9591909d9023d8af (diff)
sna: Fix typo for sna_render_picture_flatten()
Pass it the correct value for the pixmap height, and not its 'y' coordinate! Reported-by: Eugene Rosenzweig <ugn@outlook.com> Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=434860 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c
index 4493bf6d..58449228 100644
--- a/src/sna/sna_render.c
+++ b/src/sna/sna_render.c
@@ -1497,13 +1497,13 @@ sna_render_picture_fixup(struct sna *sna,
}
if (picture->alphaMap) {
DBG(("%s: alphamap\n", __FUNCTION__));
if (is_gpu(picture->pDrawable) || is_gpu(picture->alphaMap->pDrawable)) {
return sna_render_picture_flatten(sna, picture, channel,
- x, y, w, y, dst_x, dst_y);
+ x, y, w, h, dst_x, dst_y);
}
goto do_fixup;
}
if (picture->filter == PictFilterConvolution) {