aboutsummaryrefslogtreecommitdiff
path: root/pixman/test/scaling-crash-test.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-05-29 08:45:04 +0200
committermarha <marha@users.sourceforge.net>2012-05-29 08:45:04 +0200
commitce592e25d6303a8f4a8aa0e2918e0f72a35bf175 (patch)
tree845b108f004259a6e4f72ade3dd5e0521ab3952b /pixman/test/scaling-crash-test.c
parenteef864d36de97903007f04fad9fa43afe297745b (diff)
downloadvcxsrv-ce592e25d6303a8f4a8aa0e2918e0f72a35bf175.tar.gz
vcxsrv-ce592e25d6303a8f4a8aa0e2918e0f72a35bf175.tar.bz2
vcxsrv-ce592e25d6303a8f4a8aa0e2918e0f72a35bf175.zip
fontconfig libX11 mesa pixman xserver git update 29 May 2012
Diffstat (limited to 'pixman/test/scaling-crash-test.c')
-rw-r--r--pixman/test/scaling-crash-test.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pixman/test/scaling-crash-test.c b/pixman/test/scaling-crash-test.c
index ed57ae024..0dac892b5 100644
--- a/pixman/test/scaling-crash-test.c
+++ b/pixman/test/scaling-crash-test.c
@@ -32,8 +32,8 @@ run_test (int32_t dst_width,
pixman_transform_t transform;
uint32_t * srcbuf;
uint32_t * dstbuf;
- pixman_box32_t box = { 0, 0, src_width, src_height };
pixman_color_t color_cc = { 0xcccc, 0xcccc, 0xcccc, 0xcccc };
+ pixman_image_t * solid;
int result;
int i;
@@ -62,7 +62,10 @@ run_test (int32_t dst_width,
PIXMAN_a8r8g8b8, src_width, src_height,
srcbuf + (src_width + 10) * 5 + 5, (src_width + 10) * 4);
- pixman_image_fill_boxes (PIXMAN_OP_SRC, src_img, &color_cc, 1, &box);
+ solid = pixman_image_create_solid_fill (&color_cc);
+ pixman_image_composite32 (PIXMAN_OP_SRC, solid, NULL, src_img,
+ 0, 0, 0, 0, 0, 0, src_width, src_height);
+ pixman_image_unref (solid);
dst_img = pixman_image_create_bits (
PIXMAN_a8r8g8b8, dst_width, dst_height, dstbuf, dst_width * 4);