[PATCH v3 1/2] gdiplus: reduce number of calculations for matrix rotation