summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Zhenyu <zhenyu.z.wang@intel.com>2006-09-28 13:55:52 +0800
committerKeith Packard <keithp@neko.keithp.com>2007-01-03 22:23:50 -0800
commitca608028c5301700444d39a1c631cc0d5648e1a2 (patch)
tree2f014466d728b1e08de581fbd4e9043ceea2d97c
parent848368d5d0b90e03d3ec447cb5bd39fc87aea8df (diff)
[PATCH] Fix picture's transform checking
Signed-off-by: Keith Packard <keithp@neko.keithp.com>
-rw-r--r--src/i965_exa_render.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/i965_exa_render.c b/src/i965_exa_render.c
index f7093f21..55283885 100644
--- a/src/i965_exa_render.c
+++ b/src/i965_exa_render.c
@@ -437,11 +437,22 @@ ErrorF("i965 prepareComposite\n");
scale_units[2][0] = pDst->drawable.width;
scale_units[2][1] = pDst->drawable.height;
+ if (pSrcPicture->transform) {
+ is_transform[0] = TRUE;
+ transform[0] = pSrcPicture->transform;
+ } else
+ is_transform[0] = FALSE;
+
if (!pMask) {
is_transform[1] = FALSE;
scale_units[1][0] = -1;
scale_units[1][1] = -1;
} else {
+ if (pMaskPicture->transform) {
+ is_transform[1] = TRUE;
+ transform[1] = pMaskPicture->transform;
+ } else
+ is_transform[1] = FALSE;
scale_units[1][0] = pMask->drawable.width;
scale_units[1][1] = pMask->drawable.height;
}