Bartosz Kosiorek (@gang65) commented about dlls/gdiplus/graphics.c:
{ case WineCoordinateSpaceGdiDevice: { - GpMatrix gdixform; - gdixform = graphics->gdi_transform; + GpMatrix gdixform = graphics->gdi_transform; stat = GdipInvertMatrix(&gdixform); if (stat != Ok) break; - GdipMultiplyMatrix(matrix, &gdixform, MatrixOrderAppend); + memcpy(matrix->matrix, gdixform.matrix, 6 * sizeof(REAL));
In previous implementation we have multiplied [Identity Matrix](https://en.wikipedia.org/wiki/Identity_matrix) with GDIMatrix, and the result was always the same (GDIMatrix). Instead of expensive Matrix Multiplication, just copy matrix, and boost perfmance. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2847#note_33025