- MFB: fix #30739, imagefill did not set back alphablending mode

This commit is contained in:
Pierre Joye 2004-11-17 17:21:22 +00:00
parent e9003696bd
commit d9f08cb7ce

View File

@ -1889,7 +1889,10 @@ void gdImageFill(gdImagePtr im, int x, int y, int nc)
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;