pajoye Sun Jun 17 16:51:50 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/gd/libgd gd.c
Log:
- Drop useless tests (Daniel Diaz)
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd.c?r1=1.90.2.1.2.15&r2=1.90.2.1.2.16&diff_format=u
Index: php-src/ext/gd/libgd/gd.c
diff -u php-src/ext/gd/libgd/gd.c:1.90.2.1.2.15
php-src/ext/gd/libgd/gd.c:1.90.2.1.2.16
--- php-src/ext/gd/libgd/gd.c:1.90.2.1.2.15 Sun Jun 17 10:56:51 2007
+++ php-src/ext/gd/libgd/gd.c Sun Jun 17 16:51:50 2007
@@ -3657,9 +3657,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;
@@ -3692,9 +3690,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;
@@ -3739,9 +3735,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;
@@ -3801,9 +3795,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;
@@ -3844,9 +3836,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;
@@ -3902,9 +3892,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);
@@ -4024,9 +4012,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