fix a bug: dx and dy of StretchBlt are reset to zero if it is less than 0 in error

This commit is contained in:
Vincent Wei
2022-11-27 16:30:34 +08:00
parent ea579771a7
commit 84f3cf048a

View File

@@ -1554,8 +1554,6 @@ BOOL GUIAPI StretchBltEx (HDC hsdc, int sx, int sy, int sw, int sh,
#else
if (sx < 0) sx = 0;
if (sy < 0) sy = 0;
if (dx < 0) dx = 0;
if (dy < 0) dy = 0;
if (sx >= RECTW(psdc->DevRC))
goto error_ret;