From 1a5037de1a742427c4e73d9e05289785df561051 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Sun, 17 Nov 2002 14:25:50 +0000 Subject: [PATCH] - Fix compile problems for mips pro --- ext/gd/libgd/gd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.50.1