authorChris Wilson <>2012-09-14 13:06:38 (GMT)
committer Chris Wilson <>2012-09-14 13:06:38 (GMT)
commit8e9d64203428b344433ac8f86dc1f06d2c32529a (patch) (side-by-side diff)
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 <> Bugzilla: Signed-off-by: Chris Wilson <>
Diffstat (more/less context) (ignore whitespace changes)
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c
index 4493bf6..5844922 100644
--- a/src/sna/sna_render.c
+++ b/src/sna/sna_render.c
@@ -1500,7 +1500,7 @@ sna_render_picture_fixup(struct sna *sna,
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;