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

From: Date: Wed, 11 Feb 2009 16:30:48 +0000
Subject: cvs: php-src /ext/gd/libgd gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-56188@lists.php.net to get a copy of this message
tabe Wed Feb 11 16:30:48 2009 UTC Modified files: /php-src/ext/gd/libgd gd.c Log: optimization via the row-major order. http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd.c?r1=1.117&r2=1.118&diff_format=u Index: php-src/ext/gd/libgd/gd.c diff -u php-src/ext/gd/libgd/gd.c:1.117 php-src/ext/gd/libgd/gd.c:1.118 --- php-src/ext/gd/libgd/gd.c:1.117 Mon Jan 19 15:41:15 2009 +++ php-src/ext/gd/libgd/gd.c Wed Feb 11 16:30:48 2009 @@ -613,8 +613,8 @@ xlate[i] = -1; } - for (x = 0; x < to->sx; x++) { - for (y = 0; y < to->sy; y++) { + for (y = 0; y < to->sy; y++) { + for (x = 0; x < to->sx; x++) { p = gdImageGetPixel(to, x, y); if (xlate[p] == -1) { /* This ought to use HWB, but we don't have an alpha-aware version of that yet. */

« previous php.cvs (#56188) next »