gdiplus: Implemented GdipResetWorldTransform.
This commit is contained in:
parent
ef889d94a3
commit
169e87d879
|
@ -482,7 +482,7 @@
|
|||
@ stub GdipResetPathGradientTransform
|
||||
@ stub GdipResetPenTransform
|
||||
@ stub GdipResetTextureTransform
|
||||
@ stub GdipResetWorldTransform
|
||||
@ stdcall GdipResetWorldTransform(ptr)
|
||||
@ stdcall GdipRestoreGraphics(ptr long)
|
||||
@ stdcall GdipReversePath(ptr)
|
||||
@ stub GdipRotateLineTransform
|
||||
|
|
|
@ -2343,6 +2343,21 @@ GpStatus WINGDIPAPI GdipMeasureString(GpGraphics *graphics,
|
|||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipResetWorldTransform(GpGraphics *graphics)
|
||||
{
|
||||
if(!graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
graphics->worldtrans->matrix[0] = 1.0;
|
||||
graphics->worldtrans->matrix[1] = 0.0;
|
||||
graphics->worldtrans->matrix[2] = 0.0;
|
||||
graphics->worldtrans->matrix[3] = 1.0;
|
||||
graphics->worldtrans->matrix[4] = 0.0;
|
||||
graphics->worldtrans->matrix[5] = 0.0;
|
||||
|
||||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipRestoreGraphics(GpGraphics *graphics, GraphicsState state)
|
||||
{
|
||||
static int calls;
|
||||
|
|
|
@ -166,6 +166,7 @@ GpStatus WINGDIPAPI GdipMeasureCharacterRanges(GpGraphics*, GDIPCONST WCHAR*,
|
|||
GpRegion**);
|
||||
|
||||
GpStatus WINGDIPAPI GdipReleaseDC(GpGraphics*,HDC);
|
||||
GpStatus WINGDIPAPI GdipResetWorldTransform(GpGraphics*);
|
||||
GpStatus WINGDIPAPI GdipRestoreGraphics(GpGraphics*,GraphicsState);
|
||||
GpStatus WINGDIPAPI GdipRotateWorldTransform(GpGraphics*,REAL,GpMatrixOrder);
|
||||
GpStatus WINGDIPAPI GdipSaveGraphics(GpGraphics*,GraphicsState*);
|
||||
|
|
Loading…
Reference in New Issue