cvs: php4 /ext/gd/libgd gd.c
| From: | Rasmus Lerdorf | Date: | Mon, 13 May 2002 20:20:16 +0000 |
| Subject: | cvs: php4 /ext/gd/libgd gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-11906@lists.php.net to get a copy of this message | ||
rasmus Mon May 13 16:20:16 2002 EDT
Modified files:
/php4/ext/gd/libgd gd.c
Log:
fix copyresampled bug in bundled gd lib
Index: php4/ext/gd/libgd/gd.c
diff -u php4/ext/gd/libgd/gd.c:1.2 php4/ext/gd/libgd/gd.c:1.3
--- php4/ext/gd/libgd/gd.c:1.2 Sun Apr 21 09:48:22 2002
+++ php4/ext/gd/libgd/gd.c Mon May 13 16:20:16 2002
@@ -2056,8 +2056,8 @@
pcontribution = xportion * yportion;
p = gdImageGetTrueColorPixel (
src,
- (int) sx,
- (int) sy);
+ (int) sx + srcX,
+ (int) sy + srcY);
red += gdTrueColorGetRed (p) * pcontribution;
green += gdTrueColorGetGreen (p) * pcontribution;
blue += gdTrueColorGetBlue (p) * pcontribution;