gdiplus: Added GdipCloneMatrix.

This commit is contained in:
Evan Stade 2007-07-24 17:18:42 -07:00 committed by Alexandre Julliard
parent 8162139553
commit eab427ee3f
3 changed files with 15 additions and 1 deletions

View File

@ -49,7 +49,7 @@
@ stub GdipCloneFontFamily @ stub GdipCloneFontFamily
@ stub GdipCloneImage @ stub GdipCloneImage
@ stub GdipCloneImageAttributes @ stub GdipCloneImageAttributes
@ stub GdipCloneMatrix @ stdcall GdipCloneMatrix(ptr ptr)
@ stub GdipClonePath @ stub GdipClonePath
@ stdcall GdipClonePen(ptr ptr) @ stdcall GdipClonePen(ptr ptr)
@ stub GdipCloneRegion @ stub GdipCloneRegion

View File

@ -70,6 +70,19 @@ GpStatus WINGDIPAPI GdipCreateMatrix2(REAL m11, REAL m12, REAL m21, REAL m22,
return Ok; return Ok;
} }
GpStatus WINGDIPAPI GdipCloneMatrix(GpMatrix *matrix, GpMatrix **clone)
{
if(!matrix || !clone)
return InvalidParameter;
*clone = GdipAlloc(sizeof(GpMatrix));
if(!*clone) return OutOfMemory;
memcpy(*clone, matrix, sizeof(GpMatrix));
return Ok;
}
GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix **matrix) GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix **matrix)
{ {
if(!matrix) if(!matrix)

View File

@ -101,6 +101,7 @@ GpStatus WINGDIPAPI GdipResetPath(GpPath*);
GpStatus WINGDIPAPI GdipSetPathFillMode(GpPath*,GpFillMode); GpStatus WINGDIPAPI GdipSetPathFillMode(GpPath*,GpFillMode);
GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*); GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*);
GpStatus WINGDIPAPI GdipCloneMatrix(GpMatrix*,GpMatrix**);
GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**); GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**);
GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix**); GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix**);
GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix*); GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix*);