iliaa Fri May 28 09:47:26 2004 EDT Modified files: (Branch: PHP_4_3) /php-src/ext/gd/libgd gd_topal.c Log: MFH: Fixed bug #28311 (Transparency detection code is off by 1). http://cvs.php.net/diff.php/php-src/ext/gd/libgd/gd_topal.c?r1=1.8.2.5&r2=1.8.2.6&ty=u Index: php-src/ext/gd/libgd/gd_topal.c diff -u php-src/ext/gd/libgd/gd_topal.c:1.8.2.5 php-src/ext/gd/libgd/gd_topal.c:1.8.2.6 --- php-src/ext/gd/libgd/gd_topal.c:1.8.2.5 Thu Dec 25 17:33:03 2003 +++ php-src/ext/gd/libgd/gd_topal.c Fri May 28 09:47:26 2004 @@ -1260,7 +1260,7 @@ * will later be added at the end of the palette as the transparent * index. */ - if ((im->transparent >= 0) && (im->transparent == *inptr)) { + if ((im->transparent >= 0) && (im->transparent == *(inptr - 1))) { *outptr++ = im->colorsTotal; continue; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php