cvs: php-src(PHP_4_3) /ext/gd/libgd gd_topal.c

From: Date: Fri, 28 May 2004 13:47:26 +0000
Subject: cvs: php-src(PHP_4_3) /ext/gd/libgd gd_topal.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-27492@lists.php.net to get a copy of this message
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; }

« previous php.cvs (#27492) next »