utils.c: fix fallback code for fence_image_create_bits()
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 8 Sep 2015 06:20:46 +0000 (09:20 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 9 Sep 2015 08:29:44 +0000 (11:29 +0300)
Used a wrong variable name, causing:
/home/pq/git/pixman/demos/../test/utils.c: In function ‘fence_image_create_bits’:
/home/pq/git/pixman/demos/../test/utils.c:562:46: error: ‘width’ undeclared (first use in this function)

Use the correct variable.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Ben Avison <bavison@riscosopen.org>
test/utils.c

index 783b97a885c27ab6b367ac881a937fc8ceec9a72..9089ffcc719269bce273a5b7483bbb16e1d8ec1c 100644 (file)
@@ -559,7 +559,7 @@ fence_image_create_bits (pixman_format_code_t format,
                          int height,
                          pixman_bool_t stride_fence)
 {
-    return pixman_image_create_bits (format, width, height, NULL, 0);
+    return pixman_image_create_bits (format, min_width, height, NULL, 0);
     /* Implicitly allocated storage does not need a destroy function
      * to get freed on refcount hitting zero.
      */