Browse Source

* Fix a bug in sample program "dithering.php"

tags/v0.99.beta17
Nicolas Vion nico 16 years ago
parent
commit
c5c1216305
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      caca-php/examples/dithering.php

+ 1
- 1
caca-php/examples/dithering.php View File

@@ -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);


Loading…
Cancel
Save