浏览代码

* Modify error message in sample program dithering.php

tags/v0.99.beta17
Nicolas Vion nico 17 年前
父节点
当前提交
19cb89ebb9
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      caca-php/config.m4
  2. +1
    -1
      caca-php/examples/dithering.php

+ 1
- 1
caca-php/config.m4 查看文件

@@ -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 查看文件

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


正在加载...
取消
保存