From c5c121630511aa84789f84900f8dddb08bbc1ddc Mon Sep 17 00:00:00 2001 From: Nicolas Vion Date: Mon, 27 Oct 2008 19:54:07 +0000 Subject: [PATCH] * Fix a bug in sample program "dithering.php" --- caca-php/examples/dithering.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caca-php/examples/dithering.php b/caca-php/examples/dithering.php index dc9eb2c..97551a3 100755 --- a/caca-php/examples/dithering.php +++ b/caca-php/examples/dithering.php @@ -7,7 +7,7 @@ if (!$dither) $canvas = caca_create_canvas(0, 0); $display = caca_create_display($canvas); -if (!$dither) +if (!$display) die("Can not create display.\n"); caca_dither_bitmap_gd($canvas, 0, 0, caca_get_canvas_width($canvas), caca_get_canvas_height($canvas), $dither, $img);