summaryrefslogtreecommitdiff
path: root/uxa
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-05-15 09:02:07 +0100
committerOwain G. Ainsworth <oga@openbsd.org>2010-05-17 20:40:57 +0100
commit2ed7dbeab83c1387df104ca38d1a8e9d748cea1a (patch)
tree8666da5c67de04d8374942a38423bb82be1527c4 /uxa
parent04b811fa4a3938347a696d8c8d05c9b3462ae919 (diff)
uxa: Check the w-scaling component is 1 for an translation matrix
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> (cherry picked from commit ef95899f5b21453daeabf81a3015b22456d21fec) Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
Diffstat (limited to 'uxa')
-rw-r--r--uxa/uxa-render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c
index 172b40a5..d3b4ec4c 100644
--- a/uxa/uxa-render.c
+++ b/uxa/uxa-render.c
@@ -669,7 +669,8 @@ transform_is_integer_translation(PictTransformPtr t, int *tx, int *ty)
t->matrix[1][0] != 0 ||
t->matrix[1][1] != IntToxFixed(1) ||
t->matrix[2][0] != 0 ||
- t->matrix[2][1] != 0)
+ t->matrix[2][1] != 0 ||
+ t->matrix[2][2] != IntToxFixed(1))
return FALSE;
if (xFixedFrac(t->matrix[0][2]) != 0 ||