Browse Source

* Modify error message in sample program dithering.php

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

+ 1
- 1
caca-php/config.m4 View File

@@ -8,7 +8,7 @@ if test "$PHP_CACA" = "yes"; then
AC_MSG_ERROR(libcaca development files required !) AC_MSG_ERROR(libcaca development files required !)
]) ])


PHP_CHECK_LIBRARY(gd, gdImageSetPixel, [
AC_CHECK_LIB(gd, gdImageSetPixel, [
PHP_ADD_LIBRARY(gd,, CACA_SHARED_LIBADD) PHP_ADD_LIBRARY(gd,, CACA_SHARED_LIBADD)
AC_DEFINE(HAVE_GD, 1, [Wheter you have development files of gd]) AC_DEFINE(HAVE_GD, 1, [Wheter you have development files of gd])
]) ])


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

@@ -7,7 +7,7 @@ if (!$img)


$dither = caca_create_dither($img); $dither = caca_create_dither($img);
if (!$dither) if (!$dither)
die("Can not create dither. Maybe this image is not truecolor.\n");
die("Can not create dither. Maybe you compiled caca-php without gd support.\n");


$canvas = caca_create_canvas(0, 0); $canvas = caca_create_canvas(0, 0);
$display = caca_create_display($canvas); $display = caca_create_display($canvas);


Loading…
Cancel
Save