summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Zhenyu <zhenyu.z.wang@intel.com>2006-09-28 13:55:52 +0800
committerWang Zhenyu <zhenyu.z.wang@intel.com>2006-09-28 13:55:52 +0800
commit92c5020bbd31e02c7224798a8f094d237afa19a0 (patch)
tree92796719cf70a1133587c36c28259acff78a3ac1
parent518802843284973f1f86132afd805c0e662e1ba6 (diff)
Fix picture's transform checking
-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;
}