Bladeren bron

* Modify error message in sample program dithering.php

tags/v0.99.beta17
Nicolas Vion nico 16 jaren geleden
bovenliggende
commit
19cb89ebb9
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +1
    -1
      caca-php/config.m4
  2. +1
    -1
      caca-php/examples/dithering.php

+ 1
- 1
caca-php/config.m4 Bestand weergeven

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

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


+ 1
- 1
caca-php/examples/dithering.php Bestand weergeven

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

$dither = caca_create_dither($img);
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);
$display = caca_create_display($canvas);


Laden…
Annuleren
Opslaan