Set accessors for the destination image in composite-test.c
authorSøren Sandmann <sandmann@redhat.com>
Fri, 24 Aug 2007 20:49:29 +0000 (16:49 -0400)
committerSøren Sandmann <sandmann@redhat.com>
Fri, 24 Aug 2007 20:49:29 +0000 (16:49 -0400)
test/composite-test.c

index cee9609..d6596f4 100644 (file)
@@ -122,13 +122,14 @@ main (int argc, char **argv)
                                        src,
                                        WIDTH * 4);
 
-    pixman_image_set_accessors (src_img, reader, writer);
-    
     dest_img = pixman_image_create_bits (PIXMAN_a8r8g8b8,
                                         WIDTH, HEIGHT,
                                         dest,
                                         WIDTH * 4);
 
+    pixman_image_set_accessors (src_img, reader, writer);
+    pixman_image_set_accessors (dest_img, reader, writer);
+    
     pixman_image_composite (PIXMAN_OP_OVER, src_img, NULL, dest_img,
                            0, 0, 0, 0, 0, 0, WIDTH, HEIGHT);