Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
38196119
Commit
38196119
authored
Sep 03, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add few TRACE(..) for Matrix.
parent
088ed7a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
matrix.c
dlls/gdiplus/matrix.c
+43
-0
No files found.
dlls/gdiplus/matrix.c
View file @
38196119
...
...
@@ -61,6 +61,8 @@ static REAL matrix_det(GDIPCONST GpMatrix *matrix)
GpStatus
WINGDIPAPI
GdipCreateMatrix2
(
REAL
m11
,
REAL
m12
,
REAL
m21
,
REAL
m22
,
REAL
dx
,
REAL
dy
,
GpMatrix
**
matrix
)
{
TRACE
(
"(%.2f, %.2f, %.2f, %.2f, %.2f, %.2f, %p)
\n
"
,
m11
,
m12
,
m21
,
m22
,
dx
,
dy
,
matrix
);
if
(
!
matrix
)
return
InvalidParameter
;
...
...
@@ -83,6 +85,8 @@ GpStatus WINGDIPAPI GdipCreateMatrix2(REAL m11, REAL m12, REAL m21, REAL m22,
GpStatus
WINGDIPAPI
GdipCreateMatrix3
(
GDIPCONST
GpRectF
*
rect
,
GDIPCONST
GpPointF
*
pt
,
GpMatrix
**
matrix
)
{
TRACE
(
"(%p, %p, %p)
\n
"
,
rect
,
pt
,
matrix
);
if
(
!
matrix
)
return
InvalidParameter
;
...
...
@@ -103,6 +107,8 @@ GpStatus WINGDIPAPI GdipCreateMatrix3I(GDIPCONST GpRect *rect, GDIPCONST GpPoint
GpRectF
rectF
;
GpPointF
ptF
;
TRACE
(
"(%p, %p, %p)
\n
"
,
rect
,
pt
,
matrix
);
rectF
.
X
=
(
REAL
)
rect
->
X
;
rectF
.
Y
=
(
REAL
)
rect
->
Y
;
rectF
.
Width
=
(
REAL
)
rect
->
Width
;
...
...
@@ -116,6 +122,8 @@ GpStatus WINGDIPAPI GdipCreateMatrix3I(GDIPCONST GpRect *rect, GDIPCONST GpPoint
GpStatus
WINGDIPAPI
GdipCloneMatrix
(
GpMatrix
*
matrix
,
GpMatrix
**
clone
)
{
TRACE
(
"(%p, %p)
\n
"
,
matrix
,
clone
);
if
(
!
matrix
||
!
clone
)
return
InvalidParameter
;
...
...
@@ -129,6 +137,8 @@ GpStatus WINGDIPAPI GdipCloneMatrix(GpMatrix *matrix, GpMatrix **clone)
GpStatus
WINGDIPAPI
GdipCreateMatrix
(
GpMatrix
**
matrix
)
{
TRACE
(
"(%p)
\n
"
,
matrix
);
if
(
!
matrix
)
return
InvalidParameter
;
...
...
@@ -147,6 +157,8 @@ GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix **matrix)
GpStatus
WINGDIPAPI
GdipDeleteMatrix
(
GpMatrix
*
matrix
)
{
TRACE
(
"(%p)
\n
"
,
matrix
);
if
(
!
matrix
)
return
InvalidParameter
;
...
...
@@ -158,6 +170,8 @@ GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix *matrix)
GpStatus
WINGDIPAPI
GdipGetMatrixElements
(
GDIPCONST
GpMatrix
*
matrix
,
REAL
*
out
)
{
TRACE
(
"(%p, %p)
\n
"
,
matrix
,
out
);
if
(
!
matrix
||
!
out
)
return
InvalidParameter
;
...
...
@@ -172,6 +186,8 @@ GpStatus WINGDIPAPI GdipInvertMatrix(GpMatrix *matrix)
REAL
det
;
BOOL
invertible
;
TRACE
(
"(%p)
\n
"
,
matrix
);
if
(
!
matrix
)
return
InvalidParameter
;
...
...
@@ -195,6 +211,8 @@ GpStatus WINGDIPAPI GdipInvertMatrix(GpMatrix *matrix)
GpStatus
WINGDIPAPI
GdipIsMatrixInvertible
(
GDIPCONST
GpMatrix
*
matrix
,
BOOL
*
result
)
{
TRACE
(
"(%p, %p)
\n
"
,
matrix
,
result
);
if
(
!
matrix
||
!
result
)
return
InvalidParameter
;
...
...
@@ -206,6 +224,8 @@ GpStatus WINGDIPAPI GdipIsMatrixInvertible(GDIPCONST GpMatrix *matrix, BOOL *res
GpStatus
WINGDIPAPI
GdipMultiplyMatrix
(
GpMatrix
*
matrix
,
GpMatrix
*
matrix2
,
GpMatrixOrder
order
)
{
TRACE
(
"(%p, %p, %d)
\n
"
,
matrix
,
matrix2
,
order
);
if
(
!
matrix
||
!
matrix2
)
return
InvalidParameter
;
...
...
@@ -222,6 +242,8 @@ GpStatus WINGDIPAPI GdipRotateMatrix(GpMatrix *matrix, REAL angle,
{
REAL
cos_theta
,
sin_theta
,
rotate
[
6
];
TRACE
(
"(%p, %.2f, %d)
\n
"
,
matrix
,
angle
,
order
);
if
(
!
matrix
)
return
InvalidParameter
;
...
...
@@ -249,6 +271,8 @@ GpStatus WINGDIPAPI GdipScaleMatrix(GpMatrix *matrix, REAL scaleX, REAL scaleY,
{
REAL
scale
[
6
];
TRACE
(
"(%p, %.2f, %.2f, %d)
\n
"
,
matrix
,
scaleX
,
scaleY
,
order
);
if
(
!
matrix
)
return
InvalidParameter
;
...
...
@@ -270,6 +294,9 @@ GpStatus WINGDIPAPI GdipScaleMatrix(GpMatrix *matrix, REAL scaleX, REAL scaleY,
GpStatus
WINGDIPAPI
GdipSetMatrixElements
(
GpMatrix
*
matrix
,
REAL
m11
,
REAL
m12
,
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
)
return
InvalidParameter
;
...
...
@@ -288,6 +315,8 @@ GpStatus WINGDIPAPI GdipShearMatrix(GpMatrix *matrix, REAL shearX, REAL shearY,
{
REAL
shear
[
6
];
TRACE
(
"(%p, %.2f, %.2f, %d)
\n
"
,
matrix
,
shearX
,
shearY
,
order
);
if
(
!
matrix
)
return
InvalidParameter
;
...
...
@@ -313,6 +342,8 @@ GpStatus WINGDIPAPI GdipTransformMatrixPoints(GpMatrix *matrix, GpPointF *pts,
REAL
x
,
y
;
INT
i
;
TRACE
(
"(%p, %p, %d)
\n
"
,
matrix
,
pts
,
count
);
if
(
!
matrix
||
!
pts
||
count
<=
0
)
return
InvalidParameter
;
...
...
@@ -334,6 +365,8 @@ GpStatus WINGDIPAPI GdipTransformMatrixPointsI(GpMatrix *matrix, GpPoint *pts, I
GpStatus
ret
;
INT
i
;
TRACE
(
"(%p, %p, %d)
\n
"
,
matrix
,
pts
,
count
);
if
(
count
<=
0
)
return
InvalidParameter
;
...
...
@@ -363,6 +396,8 @@ GpStatus WINGDIPAPI GdipTranslateMatrix(GpMatrix *matrix, REAL offsetX,
{
REAL
translate
[
6
];
TRACE
(
"(%p, %.2f, %.2f, %d)
\n
"
,
matrix
,
offsetX
,
offsetY
,
order
);
if
(
!
matrix
)
return
InvalidParameter
;
...
...
@@ -386,6 +421,8 @@ GpStatus WINGDIPAPI GdipVectorTransformMatrixPoints(GpMatrix *matrix, GpPointF *
REAL
x
,
y
;
INT
i
;
TRACE
(
"(%p, %p, %d)
\n
"
,
matrix
,
pts
,
count
);
if
(
!
matrix
||
!
pts
||
count
<=
0
)
return
InvalidParameter
;
...
...
@@ -407,6 +444,8 @@ GpStatus WINGDIPAPI GdipVectorTransformMatrixPointsI(GpMatrix *matrix, GpPoint *
GpStatus
ret
;
INT
i
;
TRACE
(
"(%p, %p, %d)
\n
"
,
matrix
,
pts
,
count
);
if
(
count
<=
0
)
return
InvalidParameter
;
...
...
@@ -434,6 +473,8 @@ GpStatus WINGDIPAPI GdipVectorTransformMatrixPointsI(GpMatrix *matrix, GpPoint *
GpStatus
WINGDIPAPI
GdipIsMatrixEqual
(
GDIPCONST
GpMatrix
*
matrix
,
GDIPCONST
GpMatrix
*
matrix2
,
BOOL
*
result
)
{
TRACE
(
"(%p, %p, %p)
\n
"
,
matrix
,
matrix2
,
result
);
if
(
!
matrix
||
!
matrix2
||
!
result
)
return
InvalidParameter
;
/* based on single array member of GpMatrix */
...
...
@@ -448,6 +489,8 @@ GpStatus WINGDIPAPI GdipIsMatrixIdentity(GDIPCONST GpMatrix *matrix, BOOL *resul
GpStatus
ret
;
BOOL
isIdentity
;
TRACE
(
"(%p, %p)
\n
"
,
matrix
,
result
);
if
(
!
matrix
||
!
result
)
return
InvalidParameter
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment