From 01835e046985d8e6679334c73413e89f4d11c5f0 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Mon, 13 May 2002 20:20:16 +0000 Subject: [PATCH] fix copyresampled bug in bundled gd lib --- ext/gd/libgd/gd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.50.1