From: Rasmus Lerdorf Date: Mon, 13 May 2002 20:20:16 +0000 (+0000) Subject: fix copyresampled bug in bundled gd lib X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01835e046985d8e6679334c73413e89f4d11c5f0;p=php fix copyresampled bug in bundled gd lib --- diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c index ec534855d6..d2e102e086 100644 --- a/ext/gd/libgd/gd.c +++ b/ext/gd/libgd/gd.c @@ -2056,8 +2056,8 @@ gdImageCopyResampled (gdImagePtr dst, 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;