From 3526c8b8bf6f7201dd1bf6e398011f6b05a81f9e Mon Sep 17 00:00:00 2001 From: chirsz Date: Thu, 19 Mar 2020 19:35:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=A1=E7=AE=97=E7=BB=98?= =?UTF-8?q?=E5=88=B6=E5=8C=BA=E6=97=B6=E8=AE=A1=E7=AE=97=E5=A4=B1=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当源图像的绘制部分超出目标的裁剪区时,EGE 在计算实际绘制区域时会少 算 1 行和 1 列。 --- src/image.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/image.cpp b/src/image.cpp index 1c201d12..218cdf30 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -880,11 +880,11 @@ fix_rect_1size( *nHeightSrc -= dy; } if (*nXOriginDest + *nWidthSrc > _vpt.right) { - int dx = *nXOriginDest + *nWidthSrc - _vpt.right + 1; + int dx = *nXOriginDest + *nWidthSrc - _vpt.right; *nWidthSrc -= dx; } if (*nYOriginDest + *nHeightSrc > _vpt.bottom) { - int dy = *nYOriginDest + *nHeightSrc - _vpt.bottom + 1; + int dy = *nYOriginDest + *nHeightSrc - _vpt.bottom; *nHeightSrc -= dy; } }