4.3.2RC1: patch to compile with libgd < 2
| From: | Roberto Biancardi | Date: | Sat, 15 Mar 2003 22:50:46 +0000 |
| Subject: | 4.3.2RC1: patch to compile with libgd < 2 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-95188@lists.php.net to get a copy of this message | ||
--- ext/gd/gdttf.c.orig Sat Mar 15 22:38:28 2003
+++ ext/gd/gdttf.c Sat Mar 15 22:42:42 2003@@ -744,9 +744,13 @@
if (tweencolorkey.pixel > 0) {
x3 = x2 + col;
if (x3 >= im->sx || x3 < 0) continue;
+#if HAVE_LIBGD20
if (im->trueColor) {
pixel = &im->tpixels[y3][x3];
} else {
+#else
+ {
+#endif
#if HAVE_LIBGD13
pixel = &im->pixels[y3][x3];#else -- -- Roberto Biancardi -- --