]> granicus.if.org Git - php/commitdiff
- Fix compile problems for mips pro
authorDerick Rethans <derick@php.net>
Sun, 17 Nov 2002 14:25:50 +0000 (14:25 +0000)
committerDerick Rethans <derick@php.net>
Sun, 17 Nov 2002 14:25:50 +0000 (14:25 +0000)
ext/gd/libgd/gd.c

index 0c33d231130eed5a76b626013c2151bfebd6d788..77b87e4d4c2c0d82eda44dbfd168f58bd0d5e396 100644 (file)
@@ -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);
 }