summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertram Felgenhauer <int-e@gmx.de>2008-01-19 13:29:56 +0100
committerBertram Felgenhauer <int-e@gmx.de>2008-01-19 15:38:16 +0100
commit1d89bac5a7a5693911d8a74701bd1c0292160478 (patch)
tree2f37ac9eb38998039e43a776bdaee2d7b05effbd
parent45074018c3c221272719ecb2bf9f4ec66ffb8729 (diff)
fix cairo's a1-image-sample test
Move the sampling point for image surfaces very slightly so that it's in the upper left quadrant of the pixel.
-rw-r--r--pixman/pixman-compose.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pixman/pixman-compose.c b/pixman/pixman-compose.c
index c3f50e2..e240850 100644
--- a/pixman/pixman-compose.c
+++ b/pixman/pixman-compose.c
@@ -3695,8 +3695,8 @@ static void fbFetchTransformed(bits_image_t * pict, int x, int y, int width, uin
stride = pict->rowstride;
/* reference point is the center of the pixel */
- v.vector[0] = pixman_int_to_fixed(x) + pixman_fixed_1 / 2;
- v.vector[1] = pixman_int_to_fixed(y) + pixman_fixed_1 / 2;
+ v.vector[0] = pixman_int_to_fixed(x) + pixman_fixed_1 / 2 - 1;
+ v.vector[1] = pixman_int_to_fixed(y) + pixman_fixed_1 / 2 - 1;
v.vector[2] = pixman_fixed_1;
/* when using convolution filters one might get here without a transform */