From: Derick Rethans Date: Sun, 17 Nov 2002 14:25:50 +0000 (+0000) Subject: - Fix compile problems for mips pro X-Git-Tag: RELEASE_1_0b2~185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a5037de1a742427c4e73d9e05289785df561051;p=php - Fix compile problems for mips pro --- diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c index 0c33d23113..77b87e4d4c 100644 --- a/ext/gd/libgd/gd.c +++ b/ext/gd/libgd/gd.c @@ -3597,8 +3597,10 @@ int gdImageMeanRemoval(gdImagePtr im) int gdImageSmooth(gdImagePtr im, float weight) { float filter[3][3] = {{1.0,1.0,1.0}, - {1.0,weight ,1.0}, + {1.0,0.0,1.0}, {1.0,1.0,1.0}}; + filter[1][1] = weight; + return gdImageConvolution(im, filter, weight+8, 0); }