From: Pekka Paalanen Date: Tue, 8 Sep 2015 06:20:46 +0000 (+0300) Subject: utils.c: fix fallback code for fence_image_create_bits() X-Git-Tag: pixman-0.33.4~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82f8c997dfd3f60a48134107ecf38663b464bdc9;p=platform%2Fupstream%2Fpixman.git utils.c: fix fallback code for fence_image_create_bits() 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 Reviewed-by: Oded Gabbay Reviewed-by: Ben Avison --- diff --git a/test/utils.c b/test/utils.c index 783b97a..9089ffc 100644 --- a/test/utils.c +++ b/test/utils.c @@ -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. */