diff options
| author | Rasmus Lerdorf <rasmus@php.net> | 2002-05-13 20:20:16 +0000 |
|---|---|---|
| committer | Rasmus Lerdorf <rasmus@php.net> | 2002-05-13 20:20:16 +0000 |
| commit | 01835e046985d8e6679334c73413e89f4d11c5f0 (patch) | |
| tree | 0b55eb57721ad0a034f70375a5522d4efeeda7c0 | |
| parent | 8006ee79a3efb5a72eb3234e996a776eb757ef29 (diff) | |
| download | php-git-01835e046985d8e6679334c73413e89f4d11c5f0.tar.gz | |
fix copyresampled bug in bundled gd lib
| -rw-r--r-- | ext/gd/libgd/gd.c | 4 |
1 files 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; |
