mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
math in unmanaged code instead of doing it in C#. * gdipFunctions.cs (GdipResetWorldTransform, GdipSetWorldTransform): (GdipGetWorldTransform, GdipScaleWorldTransform): Imported. * Graphics.cs: Remove unnecessary TODO, and reformatted the code. (transform): Removed this field. Always use the matrix associated in the GpGraphics ptr. (DrawBeziers): Implemented. (DrawLine): Don't need to manually invoke the transform now. (MultiplyTransform, ResetTransform): (ScaleTransform, TranslateTransform): Use GDI+ implementation. (Transform): Instead of storing a Matrix in managed code, use equivalent GDI+ functions. * matrix.c (GdipCreateMatrix3, GdipCreateMatrix3I): Implemented. (GdipCloneMatrix): Fixed. (GdipShearMatrix, set_shear): Implemented. * graphics.c: (GdipGetWorldTransform, GdipMultiplyWorldTransform): Implemented. (GdipRotatePenTransform, GdipTranslatePenTransform): Use GDI+ functions instead. * gdip.h (GdipRotatePenTransform, GdipTranslatePenTransform): Fix signature. (GdipCreateMatrix3, GdipCreateMatrix3I): Use const appropriately. svn path=/trunk/mcs/; revision=20344