gdiplus: Implemented GdipResetTextureTransform.
This commit is contained in:
parent
edb764fa54
commit
31847cf30b
|
@ -898,6 +898,19 @@ GpStatus WINGDIPAPI GdipGetTextureTransform(GpTexture *brush, GpMatrix *matrix)
|
|||
return Ok;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
* GdipResetTextureTransform [GDIPLUS.@]
|
||||
*/
|
||||
GpStatus WINGDIPAPI GdipResetTextureTransform(GpTexture* brush)
|
||||
{
|
||||
TRACE("(%p)\n", brush);
|
||||
|
||||
if(!brush)
|
||||
return InvalidParameter;
|
||||
|
||||
return GdipSetMatrixElements(brush->transform, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0);
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipSetLineBlend(GpLineGradient *brush,
|
||||
GDIPCONST REAL *blend, GDIPCONST REAL* positions, INT count)
|
||||
{
|
||||
|
|
|
@ -481,7 +481,7 @@
|
|||
@ stdcall GdipResetPath(ptr)
|
||||
@ stub GdipResetPathGradientTransform
|
||||
@ stub GdipResetPenTransform
|
||||
@ stub GdipResetTextureTransform
|
||||
@ stdcall GdipResetTextureTransform(ptr)
|
||||
@ stdcall GdipResetWorldTransform(ptr)
|
||||
@ stdcall GdipRestoreGraphics(ptr long)
|
||||
@ stdcall GdipReversePath(ptr)
|
||||
|
|
|
@ -212,6 +212,14 @@ static void test_transform(void)
|
|||
status = GdipIsMatrixEqual(m, m1, &res);
|
||||
expect(Ok, status);
|
||||
expect(TRUE, res);
|
||||
/* reset */
|
||||
status = GdipResetTextureTransform(texture);
|
||||
expect(Ok, status);
|
||||
status = GdipGetTextureTransform(texture, m);
|
||||
expect(Ok, status);
|
||||
status = GdipIsMatrixIdentity(m, &res);
|
||||
expect(Ok, status);
|
||||
expect(TRUE, res);
|
||||
|
||||
status = GdipDeleteBrush((GpBrush*)texture);
|
||||
expect(Ok, status);
|
||||
|
|
|
@ -248,6 +248,7 @@ GpStatus WINGDIPAPI GdipSetPathGradientSurroundColorsWithCount(GpPathGradient*,
|
|||
GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient*,GpWrapMode);
|
||||
GpStatus WINGDIPAPI GdipSetSolidFillColor(GpSolidFill*,ARGB);
|
||||
GpStatus WINGDIPAPI GdipSetTextureTransform(GpTexture *,GDIPCONST GpMatrix*);
|
||||
GpStatus WINGDIPAPI GdipResetTextureTransform(GpTexture*);
|
||||
GpStatus WINGDIPAPI GdipTransformPoints(GpGraphics*, GpCoordinateSpace, GpCoordinateSpace,
|
||||
GpPointF *, INT);
|
||||
GpStatus WINGDIPAPI GdipTransformPointsI(GpGraphics*, GpCoordinateSpace, GpCoordinateSpace,
|
||||
|
|
Loading…
Reference in New Issue