mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:13:56 +00:00
gdiplus: Added GdipCreateMatrix.
This commit is contained in:
parent
eb478be84c
commit
a8322cb1ad
3 changed files with 20 additions and 1 deletions
|
@ -98,7 +98,7 @@
|
|||
@ stdcall GdipCreateMatrix2(long long long long long long ptr)
|
||||
@ stub GdipCreateMatrix3
|
||||
@ stub GdipCreateMatrix3I
|
||||
@ stub GdipCreateMatrix
|
||||
@ stdcall GdipCreateMatrix(ptr)
|
||||
@ stub GdipCreateMetafileFromEmf
|
||||
@ stub GdipCreateMetafileFromFile
|
||||
@ stub GdipCreateMetafileFromStream
|
||||
|
|
|
@ -70,6 +70,24 @@ GpStatus WINGDIPAPI GdipCreateMatrix2(REAL m11, REAL m12, REAL m21, REAL m22,
|
|||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix **matrix)
|
||||
{
|
||||
if(!matrix)
|
||||
return InvalidParameter;
|
||||
|
||||
*matrix = GdipAlloc(sizeof(GpMatrix));
|
||||
if(!*matrix) return OutOfMemory;
|
||||
|
||||
(*matrix)->matrix[0] = 1.0;
|
||||
(*matrix)->matrix[1] = 0.0;
|
||||
(*matrix)->matrix[2] = 0.0;
|
||||
(*matrix)->matrix[3] = 1.0;
|
||||
(*matrix)->matrix[4] = 0.0;
|
||||
(*matrix)->matrix[5] = 0.0;
|
||||
|
||||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix *matrix)
|
||||
{
|
||||
if(!matrix)
|
||||
|
|
|
@ -86,6 +86,7 @@ GpStatus WINGDIPAPI GdipSetPathFillMode(GpPath*,GpFillMode);
|
|||
GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*);
|
||||
|
||||
GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**);
|
||||
GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix**);
|
||||
GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix*);
|
||||
GpStatus WINGDIPAPI GdipMultiplyMatrix(GpMatrix*,GpMatrix*,GpMatrixOrder);
|
||||
GpStatus WINGDIPAPI GdipRotateMatrix(GpMatrix*,REAL,GpMatrixOrder);
|
||||
|
|
Loading…
Reference in a new issue