cvs: php-src /ext/gd/libgd gd.c

From: Date: Sat, 16 Apr 2005 00:04:53 +0000
Subject: cvs: php-src /ext/gd/libgd gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-31421@lists.php.net to get a copy of this message
rasmus Fri Apr 15 20:04:53 2005 EDT Modified files: /php-src/ext/gd/libgd gd.c Log: The emboss and edge detection matrices are swapped http://cvs.php.net/diff.php/php-src/ext/gd/libgd/gd.c?r1=1.86&r2=1.87&ty=u Index: php-src/ext/gd/libgd/gd.c diff -u php-src/ext/gd/libgd/gd.c:1.86 php-src/ext/gd/libgd/gd.c:1.87 --- php-src/ext/gd/libgd/gd.c:1.86 Mon Mar 28 03:17:17 2005 +++ php-src/ext/gd/libgd/gd.c Fri Apr 15 20:04:52 2005 @@ -3865,9 +3865,9 @@ int gdImageEdgeDetectQuick(gdImagePtr src) { - float filter[3][3] = {{1.0,1.0,1.0}, - {0.0,0.0,0.0}, - {-1.0,-1.0,-1.0}}; + float filter[3][3] = {{-1.0,0.0,-1.0}, + {0.0,4.0,0.0}, + {-1.0,0.0,-1.0}}; return gdImageConvolution(src, filter, 1, 127); } @@ -3883,9 +3883,9 @@ int gdImageEmboss(gdImagePtr im) { - float filter[3][3] = {{-1.0,0.0,-1.0}, - {0.0,4.0,0.0}, - {-1.0,0.0,-1.0}}; + float filter[3][3] = {{1.0,1.0,1.0}, + {0.0,0.0,0.0}, + {-1.0,-1.0,-1.0}}; return gdImageConvolution(im, filter, 1, 127); }

« previous php.cvs (#31421) next »