From: Søren Sandmann Pedersen <s...@redhat.com> Printing out the translation and scale is a bit misleading because the actual transformation matrix can be modified in various other ways.
Instead simply print the whole transformation matrix that is actually used. --- test/affine-test.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/test/affine-test.c b/test/affine-test.c index 6827cc3..7bc28b4 100644 --- a/test/affine-test.c +++ b/test/affine-test.c @@ -200,11 +200,19 @@ test_composite (int testnum, if (verbose) { +#define M(r,c) \ + transform.matrix[r][c] + printf ("src_fmt=%08X, dst_fmt=%08X\n", src_fmt, dst_fmt); - printf ("op=%d, scale_x=%d, scale_y=%d, repeat=%d\n", - op, scale_x, scale_y, repeat); - printf ("translate_x=%d, translate_y=%d\n", - translate_x, translate_y); + printf ("op=%d, repeat=%d, transform=\n", + op, repeat); + printf (" { { { 0x%08x, 0x%08x, 0x%08x },\n" + " { 0x%08x, 0x%08x, 0x%08x },\n" + " { 0x%08x, 0x%08x, 0x%08x },\n" + " } };\n", + M(0,0), M(0,1), M(0,2), + M(1,0), M(1,1), M(1,2), + M(2,0), M(2,1), M(2,2)); printf ("src_width=%d, src_height=%d, dst_width=%d, dst_height=%d\n", src_width, src_height, dst_width, dst_height); printf ("src_x=%d, src_y=%d, dst_x=%d, dst_y=%d\n", -- 1.7.11.4 _______________________________________________ Pixman mailing list Pixman@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/pixman