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. */



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to