Remove unnecessary dst initialization
authorAntti S. Lankila <alankila@bel.fi>
Sat, 28 Jul 2012 11:02:42 +0000 (14:02 +0300)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Sun, 29 Jul 2012 15:01:11 +0000 (11:01 -0400)
The initialization work is already performed correctly in image_init().

test/composite.c

index bdecd75..81c416e 100644 (file)
@@ -524,17 +524,8 @@ composite_test (image_t *dst,
                pixman_bool_t component_alpha,
                int testno)
 {
-    pixman_color_t fill;
     color_t expected, tdst, tsrc, tmsk;
     pixel_checker_t checker;
-    pixman_image_t *solid;
-
-    /* Initialize dst */
-    compute_pixman_color (dst->color, &fill);
-    solid = pixman_image_create_solid_fill (&fill);
-    pixman_image_composite32 (PIXMAN_OP_SRC, solid, NULL, dst->image,
-                             0, 0, 0, 0, 0, 0, dst->size, dst->size);
-    pixman_image_unref (solid);
 
     if (mask)
     {