cvs: php4(PHP_4_3) /ext/gd gd.c
| From: | Ilia Alshanetsky | Date: | Tue, 10 Dec 2002 17:57:54 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/gd gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-17072@lists.php.net to get a copy of this message | ||
iliaa Tue Dec 10 12:57:54 2002 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/gd gd.c
Log:
MFH
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.221.2.5 php4/ext/gd/gd.c:1.221.2.6
--- php4/ext/gd/gd.c:1.221.2.5 Wed Dec 4 18:43:06 2002
+++ php4/ext/gd/gd.c Tue Dec 10 12:57:54 2002
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.221.2.5 2002/12/04 23:43:06 iliaa Exp $ */
+/* $Id: gd.c,v 1.221.2.6 2002/12/10 17:57:54 iliaa Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -1526,12 +1526,14 @@
}
(*func_p)(im, i, fp);
break;
+#if HAVE_LIBGD20
case PHP_GDIMG_TYPE_GD:
if(im->trueColor){
gdImageTrueColorToPalette(im,1,256);
}
(*func_p)(im, fp);
break;
+#endif
default:
(*func_p)(im, fp);
break;
@@ -1563,12 +1565,14 @@
}
(*func_p)(im, q, tmp);
break;
+#if HAVE_LIBGD20
case PHP_GDIMG_TYPE_GD:
if (im->trueColor) {
gdImageTrueColorToPalette(im,1,256);
}
(*func_p)(im, tmp);
break;
+#endif
default:
(*func_p)(im, tmp);
break;