diff options
author | Søren Sandmann <sandmann@redhat.com> | 2007-06-13 00:15:34 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <sandmann@annarchy.freedesktop.org> | 2007-06-21 22:21:11 -0700 |
commit | 12cc32b674d3f1b705ef1a66bbce1ef8c4488daf (patch) | |
tree | c4d12d745d4c35ed0565885032666fc876d83ad6 /test/buffer-diff.c | |
parent | 9109946a1a7f9341e60da7358da6535c5fac52db (diff) |
[pixman] Initial port to standalone pixman library.
Diffstat (limited to 'test/buffer-diff.c')
-rw-r--r-- | test/buffer-diff.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/buffer-diff.c b/test/buffer-diff.c index abb7e33bc..59a9e5d89 100644 --- a/test/buffer-diff.c +++ b/test/buffer-diff.c @@ -34,7 +34,7 @@ #endif #include <errno.h> #include <string.h> -#include <pixman.h> +#include <pixman/pixman.h> #include "cairo-test.h" @@ -66,17 +66,17 @@ buffer_diff_core (unsigned char *_buf_a, int width, int height, int stride, - pixman_bits_t mask, + uint32_t mask, buffer_diff_result_t *result_ret) { int x, y; - pixman_bits_t *row_a, *row_b, *row; + uint32_t *row_a, *row_b, *row; buffer_diff_result_t result = {0, 0}; - pixman_bits_t *buf_a = (pixman_bits_t*)_buf_a; - pixman_bits_t *buf_b = (pixman_bits_t*)_buf_b; - pixman_bits_t *buf_diff = (pixman_bits_t*)_buf_diff; + uint32_t *buf_a = (uint32_t*)_buf_a; + uint32_t *buf_b = (uint32_t*)_buf_b; + uint32_t *buf_diff = (uint32_t*)_buf_diff; - stride /= sizeof(pixman_bits_t); + stride /= sizeof(uint32_t); for (y = 0; y < height; y++) { row_a = buf_a + y * stride; @@ -87,7 +87,7 @@ buffer_diff_core (unsigned char *_buf_a, /* check if the pixels are the same */ if ((row_a[x] & mask) != (row_b[x] & mask)) { int channel; - pixman_bits_t diff_pixel = 0; + uint32_t diff_pixel = 0; /* calculate a difference value for all 4 channels */ for (channel = 0; channel < 4; channel++) { |