From: Bertram Felgenhauer Date: Sat, 19 Jan 2008 12:29:56 +0000 (+0100) Subject: fix cairo's a1-image-sample test X-Git-Tag: pixman-0.10.0~36^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d89bac5a7a5693911d8a74701bd1c0292160478;p=platform%2Fupstream%2Fpixman.git 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. --- 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 */