From: Conor McCarthy <cmccarthy@codeweavers.com> --- dlls/gdiplus/matrix.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dlls/gdiplus/matrix.c b/dlls/gdiplus/matrix.c index dace462eb1c..6bbf03000ed 100644 --- a/dlls/gdiplus/matrix.c +++ b/dlls/gdiplus/matrix.c @@ -365,6 +365,12 @@ GpStatus WINGDIPAPI GdipShearMatrix(GpMatrix *matrix, REAL shearX, REAL shearY, GpStatus WINGDIPAPI GdipTransformMatrixPoints(GpMatrix *matrix, GpPointF *pts, INT count) { + static const GpMatrix identity = + { + { 1.0, 0.0, + 0.0, 1.0, + 0.0, 0.0 } + }; REAL x, y; INT i; @@ -373,6 +379,9 @@ GpStatus WINGDIPAPI GdipTransformMatrixPoints(GpMatrix *matrix, GpPointF *pts, if(!matrix || !pts || count <= 0) return InvalidParameter; + if (!memcmp(matrix, &identity, sizeof(*matrix))) + return Ok; + for(i = 0; i < count; i++) { x = pts[i].X; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10359