diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-09-20 21:43:24 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-09-21 16:42:29 -0400 |
commit | f08c784e312d795c8f61b732fb0c7e94280fd7e6 (patch) | |
tree | b45b173c23ff242e5f6eaa3737ec17dfb251fd88 | |
parent | 730a1aee9ec1c3d642b4088b28a88750eede3b49 (diff) |
Fix bugs in pixman-image.c
In the checks for whether the transforms are rotation matrices "-1"
and "1" were used instead of the correct -pixman_fixed_1 and
pixman_fixed_1.
Fixes test suite failure for rotate-test.
-rw-r--r-- | pixman/pixman-image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pixman/pixman-image.c b/pixman/pixman-image.c index 15597bd6..d9c30344 100644 --- a/pixman/pixman-image.c +++ b/pixman/pixman-image.c @@ -301,9 +301,9 @@ compute_image_info (pixman_image_t *image) pixman_fixed_t m01 = image->common.transform->matrix[0][1]; pixman_fixed_t m10 = image->common.transform->matrix[1][0]; - if (m01 == -1 && m10 == 1) + if (m01 == -pixman_fixed_1 && m10 == pixman_fixed_1) flags |= FAST_PATH_ROTATE_90_TRANSFORM; - else if (m01 == 1 && m10 == -1) + else if (m01 == pixman_fixed_1 && m10 == -pixman_fixed_1) flags |= FAST_PATH_ROTATE_270_TRANSFORM; } } |