cvs: php-src /ext/gd/libgd gd_topal.c
| From: | Ilia Alshanetsky | Date: | Sun, 09 May 2004 17:47:32 +0000 |
| Subject: | cvs: php-src /ext/gd/libgd gd_topal.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-27297@lists.php.net to get a copy of this message | ||
iliaa Sun May 9 13:47:32 2004 EDT
Modified files:
/php-src/ext/gd/libgd gd_topal.c
Log:
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.14&r2=1.15&ty=u
Index: php-src/ext/gd/libgd/gd_topal.c
diff -u php-src/ext/gd/libgd/gd_topal.c:1.14 php-src/ext/gd/libgd/gd_topal.c:1.15
--- php-src/ext/gd/libgd/gd_topal.c:1.14 Tue Dec 30 20:01:44 2003
+++ php-src/ext/gd/libgd/gd_topal.c Sun May 9 13:47:31 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;
}