gdiplus: Implemented GdipResetWorldTransform.

This commit is contained in:
Nikolay Sivov 2008-08-06 18:36:16 +04:00 committed by Alexandre Julliard
parent ef889d94a3
commit 169e87d879
3 changed files with 17 additions and 1 deletions

View File

@ -482,7 +482,7 @@
@ stub GdipResetPathGradientTransform
@ stub GdipResetPenTransform
@ stub GdipResetTextureTransform
@ stub GdipResetWorldTransform
@ stdcall GdipResetWorldTransform(ptr)
@ stdcall GdipRestoreGraphics(ptr long)
@ stdcall GdipReversePath(ptr)
@ stub GdipRotateLineTransform

View File

@ -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;

View File

@ -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*);