pajoye Sun Jun 17 17:12:46 2007 UTC Modified files: /php-src/ext/gd/libgd gd.c Log: - MFB: Drop useless tests (Daniel Diaz) http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd.c?r1=1.108&r2=1.109&diff_format=u Index: php-src/ext/gd/libgd/gd.c diff -u php-src/ext/gd/libgd/gd.c:1.108 php-src/ext/gd/libgd/gd.c:1.109 --- php-src/ext/gd/libgd/gd.c:1.108 Sun Jun 17 10:53:33 2007 +++ php-src/ext/gd/libgd/gd.c Sun Jun 17 17:12:46 2007 @@ -3610,9 +3610,7 @@ if (new_pxl == -1) { new_pxl = gdImageColorClosestAlpha(src, 255-r, 255-g, 255-b, a); } - if ((y >= 0) && (y < src->sy)) { - gdImageSetPixel (src, x, y, new_pxl); - } + gdImageSetPixel (src, x, y, new_pxl); } } return 1; @@ -3645,9 +3643,7 @@ if (new_pxl == -1) { new_pxl = gdImageColorClosestAlpha(src, r, g, b, a); } - if ((y >= 0) && (y < src->sy)) { - gdImageSetPixel (src, x, y, new_pxl); - } + gdImageSetPixel (src, x, y, new_pxl); } } return 1; @@ -3692,9 +3688,7 @@ if (new_pxl == -1) { new_pxl = gdImageColorClosestAlpha(src, (int)r, (int)g, (int)b, a); } - if ((y >= 0) && (y < src->sy)) { - gdImageSetPixel (src, x, y, new_pxl); - } + gdImageSetPixel (src, x, y, new_pxl); } } return 1; @@ -3754,9 +3748,7 @@ if (new_pxl == -1) { new_pxl = gdImageColorClosestAlpha(src, (int)rf, (int)gf, (int)bf, a); } - if ((y >= 0) && (y < src->sy)) { - gdImageSetPixel (src, x, y, new_pxl); - } + gdImageSetPixel (src, x, y, new_pxl); } } return 1; @@ -3797,9 +3789,7 @@ if (new_pxl == -1) { new_pxl = gdImageColorClosestAlpha(src, (int)r, (int)g, (int)b, a); } - if ((y >= 0) && (y < src->sy)) { - gdImageSetPixel (src, x, y, new_pxl); - } + gdImageSetPixel (src, x, y, new_pxl); } } return 1; @@ -3855,9 +3845,7 @@ if (new_pxl == -1) { new_pxl = gdImageColorClosestAlpha(src, (int)new_r, (int)new_g, (int)new_b, new_a); } - if ((y >= 0) && (y < src->sy)) { - gdImageSetPixel (src, x, y, new_pxl); - } + gdImageSetPixel (src, x, y, new_pxl); } } gdImageDestroy(srcback); @@ -3977,9 +3965,7 @@ if (new_pxl == -1) { new_pxl = gdImageColorClosestAlpha(src, (int)new_r, (int)new_g, (int)new_b, new_a); } - if ((y >= 0) && (y < src->sy)) { - gdImageSetPixel (src, x, y, new_pxl); - } + gdImageSetPixel (src, x, y, new_pxl); } } gdImageDestroy(srcback);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php