cvs: php-src(PHP_5_0) /ext/gd/libgd gd.c

From: Date: Sat, 16 Apr 2005 00:16:16 +0000
Subject: cvs: php-src(PHP_5_0) /ext/gd/libgd gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-31422@lists.php.net to get a copy of this message
rasmus Fri Apr 15 20:16:16 2005 EDT Modified files: (Branch: PHP_5_0) /php-src/ext/gd/libgd gd.c Log: MFH: The emboss and edge detection filter matrices were swapped http://cvs.php.net/diff.php/php-src/ext/gd/libgd/gd.c?r1=1.81.2.1&r2=1.81.2.2&ty=u Index: php-src/ext/gd/libgd/gd.c diff -u php-src/ext/gd/libgd/gd.c:1.81.2.1 php-src/ext/gd/libgd/gd.c:1.81.2.2 --- php-src/ext/gd/libgd/gd.c:1.81.2.1 Thu Dec 9 04:19:59 2004 +++ php-src/ext/gd/libgd/gd.c Fri Apr 15 20:16:14 2005 @@ -3824,9 +3824,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); } @@ -3842,9 +3842,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 (#31422) next »