pajoye Wed Nov 17 12:21:23 2004 EDT
Modified files:
/php-src/ext/gd/libgd gd.c
Log:
- MFB: fix #30739, imagefill did not set back alphablending mode
http://cvs.php.net/diff.php/php-src/ext/gd/libgd/gd.c?r1=1.81&r2=1.82&ty=u
Index: php-src/ext/gd/libgd/gd.c
diff -u php-src/ext/gd/libgd/gd.c:1.81 php-src/ext/gd/libgd/gd.c:1.82
--- php-src/ext/gd/libgd/gd.c:1.81 Mon May 24 15:52:28 2004
+++ php-src/ext/gd/libgd/gd.c Wed Nov 17 12:21:22 2004
@@ -1889,7 +1889,10 @@
wx2=im->sx;wy2=im->sy;
oc = gdImageGetPixel(im, x, y);
- if (oc==nc || x<0 || x>wx2 || y<0 || y>wy2) return;
+ if (oc==nc || x<0 || x>wx2 || y<0 || y>wy2) {
+ im->alphaBlendingFlag = alphablending_bak;
+ return;
+ }
stack = (struct seg *)safe_emalloc(sizeof(struct seg),
((int)(im->sy*im->sx)/4), 1);
sp = stack;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php