Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
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)
...
@@ -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,
...
@@ -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
...
@@ -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
...
@@ -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)
...
@@ -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)
...
@@ -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)
...
@@ -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)
...
@@ -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)
...
@@ -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
...
@@ -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,
...
@@ -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,
...
@@ -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,
...
@@ -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,
...
@@ -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,
...
@@ -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
...
@@ -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,
...
@@ -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 *
...
@@ -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 *
...
@@ -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 *
...
@@ -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
...
@@ -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
;
...
...
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