mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
gdiplus: Add few TRACE(..) for Matrix.
This commit is contained in:
parent
088ed7a52d
commit
38196119f3
@ -61,6 +61,8 @@ static REAL matrix_det(GDIPCONST GpMatrix *matrix)
|
|||||||
GpStatus WINGDIPAPI GdipCreateMatrix2(REAL m11, REAL m12, REAL m21, REAL m22,
|
GpStatus WINGDIPAPI GdipCreateMatrix2(REAL m11, REAL m12, REAL m21, REAL m22,
|
||||||
REAL dx, REAL dy, GpMatrix **matrix)
|
REAL dx, REAL dy, GpMatrix **matrix)
|
||||||
{
|
{
|
||||||
|
TRACE("(%.2f, %.2f, %.2f, %.2f, %.2f, %.2f, %p)\n", m11, m12, m21, m22, dx, dy, matrix);
|
||||||
|
|
||||||
if(!matrix)
|
if(!matrix)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
@ -83,6 +85,8 @@ GpStatus WINGDIPAPI GdipCreateMatrix2(REAL m11, REAL m12, REAL m21, REAL m22,
|
|||||||
GpStatus WINGDIPAPI GdipCreateMatrix3(GDIPCONST GpRectF *rect,
|
GpStatus WINGDIPAPI GdipCreateMatrix3(GDIPCONST GpRectF *rect,
|
||||||
GDIPCONST GpPointF *pt, GpMatrix **matrix)
|
GDIPCONST GpPointF *pt, GpMatrix **matrix)
|
||||||
{
|
{
|
||||||
|
TRACE("(%p, %p, %p)\n", rect, pt, matrix);
|
||||||
|
|
||||||
if(!matrix)
|
if(!matrix)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
@ -103,6 +107,8 @@ GpStatus WINGDIPAPI GdipCreateMatrix3I(GDIPCONST GpRect *rect, GDIPCONST GpPoint
|
|||||||
GpRectF rectF;
|
GpRectF rectF;
|
||||||
GpPointF ptF;
|
GpPointF ptF;
|
||||||
|
|
||||||
|
TRACE("(%p, %p, %p)\n", rect, pt, matrix);
|
||||||
|
|
||||||
rectF.X = (REAL)rect->X;
|
rectF.X = (REAL)rect->X;
|
||||||
rectF.Y = (REAL)rect->Y;
|
rectF.Y = (REAL)rect->Y;
|
||||||
rectF.Width = (REAL)rect->Width;
|
rectF.Width = (REAL)rect->Width;
|
||||||
@ -116,6 +122,8 @@ GpStatus WINGDIPAPI GdipCreateMatrix3I(GDIPCONST GpRect *rect, GDIPCONST GpPoint
|
|||||||
|
|
||||||
GpStatus WINGDIPAPI GdipCloneMatrix(GpMatrix *matrix, GpMatrix **clone)
|
GpStatus WINGDIPAPI GdipCloneMatrix(GpMatrix *matrix, GpMatrix **clone)
|
||||||
{
|
{
|
||||||
|
TRACE("(%p, %p)\n", matrix, clone);
|
||||||
|
|
||||||
if(!matrix || !clone)
|
if(!matrix || !clone)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
@ -129,6 +137,8 @@ GpStatus WINGDIPAPI GdipCloneMatrix(GpMatrix *matrix, GpMatrix **clone)
|
|||||||
|
|
||||||
GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix **matrix)
|
GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix **matrix)
|
||||||
{
|
{
|
||||||
|
TRACE("(%p)\n", matrix);
|
||||||
|
|
||||||
if(!matrix)
|
if(!matrix)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
@ -147,6 +157,8 @@ GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix **matrix)
|
|||||||
|
|
||||||
GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix *matrix)
|
GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix *matrix)
|
||||||
{
|
{
|
||||||
|
TRACE("(%p)\n", matrix);
|
||||||
|
|
||||||
if(!matrix)
|
if(!matrix)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
@ -158,6 +170,8 @@ GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix *matrix)
|
|||||||
GpStatus WINGDIPAPI GdipGetMatrixElements(GDIPCONST GpMatrix *matrix,
|
GpStatus WINGDIPAPI GdipGetMatrixElements(GDIPCONST GpMatrix *matrix,
|
||||||
REAL *out)
|
REAL *out)
|
||||||
{
|
{
|
||||||
|
TRACE("(%p, %p)\n", matrix, out);
|
||||||
|
|
||||||
if(!matrix || !out)
|
if(!matrix || !out)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
@ -172,6 +186,8 @@ GpStatus WINGDIPAPI GdipInvertMatrix(GpMatrix *matrix)
|
|||||||
REAL det;
|
REAL det;
|
||||||
BOOL invertible;
|
BOOL invertible;
|
||||||
|
|
||||||
|
TRACE("(%p)\n", matrix);
|
||||||
|
|
||||||
if(!matrix)
|
if(!matrix)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
@ -195,6 +211,8 @@ GpStatus WINGDIPAPI GdipInvertMatrix(GpMatrix *matrix)
|
|||||||
|
|
||||||
GpStatus WINGDIPAPI GdipIsMatrixInvertible(GDIPCONST GpMatrix *matrix, BOOL *result)
|
GpStatus WINGDIPAPI GdipIsMatrixInvertible(GDIPCONST GpMatrix *matrix, BOOL *result)
|
||||||
{
|
{
|
||||||
|
TRACE("(%p, %p)\n", matrix, result);
|
||||||
|
|
||||||
if(!matrix || !result)
|
if(!matrix || !result)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
@ -206,6 +224,8 @@ GpStatus WINGDIPAPI GdipIsMatrixInvertible(GDIPCONST GpMatrix *matrix, BOOL *res
|
|||||||
GpStatus WINGDIPAPI GdipMultiplyMatrix(GpMatrix *matrix, GpMatrix* matrix2,
|
GpStatus WINGDIPAPI GdipMultiplyMatrix(GpMatrix *matrix, GpMatrix* matrix2,
|
||||||
GpMatrixOrder order)
|
GpMatrixOrder order)
|
||||||
{
|
{
|
||||||
|
TRACE("(%p, %p, %d)\n", matrix, matrix2, order);
|
||||||
|
|
||||||
if(!matrix || !matrix2)
|
if(!matrix || !matrix2)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
@ -222,6 +242,8 @@ GpStatus WINGDIPAPI GdipRotateMatrix(GpMatrix *matrix, REAL angle,
|
|||||||
{
|
{
|
||||||
REAL cos_theta, sin_theta, rotate[6];
|
REAL cos_theta, sin_theta, rotate[6];
|
||||||
|
|
||||||
|
TRACE("(%p, %.2f, %d)\n", matrix, angle, order);
|
||||||
|
|
||||||
if(!matrix)
|
if(!matrix)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
@ -249,6 +271,8 @@ GpStatus WINGDIPAPI GdipScaleMatrix(GpMatrix *matrix, REAL scaleX, REAL scaleY,
|
|||||||
{
|
{
|
||||||
REAL scale[6];
|
REAL scale[6];
|
||||||
|
|
||||||
|
TRACE("(%p, %.2f, %.2f, %d)\n", matrix, scaleX, scaleY, order);
|
||||||
|
|
||||||
if(!matrix)
|
if(!matrix)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
@ -270,6 +294,9 @@ GpStatus WINGDIPAPI GdipScaleMatrix(GpMatrix *matrix, REAL scaleX, REAL scaleY,
|
|||||||
GpStatus WINGDIPAPI GdipSetMatrixElements(GpMatrix *matrix, REAL m11, REAL m12,
|
GpStatus WINGDIPAPI GdipSetMatrixElements(GpMatrix *matrix, REAL m11, REAL m12,
|
||||||
REAL m21, REAL m22, REAL dx, REAL dy)
|
REAL m21, REAL m22, REAL dx, REAL dy)
|
||||||
{
|
{
|
||||||
|
TRACE("(%p, %.2f, %.2f, %.2f, %.2f, %.2f, %.2f)\n", matrix, m11, m12,
|
||||||
|
m21, m22, dx, dy);
|
||||||
|
|
||||||
if(!matrix)
|
if(!matrix)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
@ -288,6 +315,8 @@ GpStatus WINGDIPAPI GdipShearMatrix(GpMatrix *matrix, REAL shearX, REAL shearY,
|
|||||||
{
|
{
|
||||||
REAL shear[6];
|
REAL shear[6];
|
||||||
|
|
||||||
|
TRACE("(%p, %.2f, %.2f, %d)\n", matrix, shearX, shearY, order);
|
||||||
|
|
||||||
if(!matrix)
|
if(!matrix)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
@ -313,6 +342,8 @@ GpStatus WINGDIPAPI GdipTransformMatrixPoints(GpMatrix *matrix, GpPointF *pts,
|
|||||||
REAL x, y;
|
REAL x, y;
|
||||||
INT i;
|
INT i;
|
||||||
|
|
||||||
|
TRACE("(%p, %p, %d)\n", matrix, pts, count);
|
||||||
|
|
||||||
if(!matrix || !pts || count <= 0)
|
if(!matrix || !pts || count <= 0)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
@ -334,6 +365,8 @@ GpStatus WINGDIPAPI GdipTransformMatrixPointsI(GpMatrix *matrix, GpPoint *pts, I
|
|||||||
GpStatus ret;
|
GpStatus ret;
|
||||||
INT i;
|
INT i;
|
||||||
|
|
||||||
|
TRACE("(%p, %p, %d)\n", matrix, pts, count);
|
||||||
|
|
||||||
if(count <= 0)
|
if(count <= 0)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
@ -363,6 +396,8 @@ GpStatus WINGDIPAPI GdipTranslateMatrix(GpMatrix *matrix, REAL offsetX,
|
|||||||
{
|
{
|
||||||
REAL translate[6];
|
REAL translate[6];
|
||||||
|
|
||||||
|
TRACE("(%p, %.2f, %.2f, %d)\n", matrix, offsetX, offsetY, order);
|
||||||
|
|
||||||
if(!matrix)
|
if(!matrix)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
@ -386,6 +421,8 @@ GpStatus WINGDIPAPI GdipVectorTransformMatrixPoints(GpMatrix *matrix, GpPointF *
|
|||||||
REAL x, y;
|
REAL x, y;
|
||||||
INT i;
|
INT i;
|
||||||
|
|
||||||
|
TRACE("(%p, %p, %d)\n", matrix, pts, count);
|
||||||
|
|
||||||
if(!matrix || !pts || count <= 0)
|
if(!matrix || !pts || count <= 0)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
@ -407,6 +444,8 @@ GpStatus WINGDIPAPI GdipVectorTransformMatrixPointsI(GpMatrix *matrix, GpPoint *
|
|||||||
GpStatus ret;
|
GpStatus ret;
|
||||||
INT i;
|
INT i;
|
||||||
|
|
||||||
|
TRACE("(%p, %p, %d)\n", matrix, pts, count);
|
||||||
|
|
||||||
if(count <= 0)
|
if(count <= 0)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
@ -434,6 +473,8 @@ GpStatus WINGDIPAPI GdipVectorTransformMatrixPointsI(GpMatrix *matrix, GpPoint *
|
|||||||
GpStatus WINGDIPAPI GdipIsMatrixEqual(GDIPCONST GpMatrix *matrix, GDIPCONST GpMatrix *matrix2,
|
GpStatus WINGDIPAPI GdipIsMatrixEqual(GDIPCONST GpMatrix *matrix, GDIPCONST GpMatrix *matrix2,
|
||||||
BOOL *result)
|
BOOL *result)
|
||||||
{
|
{
|
||||||
|
TRACE("(%p, %p, %p)\n", matrix, matrix2, result);
|
||||||
|
|
||||||
if(!matrix || !matrix2 || !result)
|
if(!matrix || !matrix2 || !result)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
/* based on single array member of GpMatrix */
|
/* based on single array member of GpMatrix */
|
||||||
@ -448,6 +489,8 @@ GpStatus WINGDIPAPI GdipIsMatrixIdentity(GDIPCONST GpMatrix *matrix, BOOL *resul
|
|||||||
GpStatus ret;
|
GpStatus ret;
|
||||||
BOOL isIdentity;
|
BOOL isIdentity;
|
||||||
|
|
||||||
|
TRACE("(%p, %p)\n", matrix, result);
|
||||||
|
|
||||||
if(!matrix || !result)
|
if(!matrix || !result)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user