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;
                        }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to