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
47a605ef
Commit
47a605ef
authored
Jul 11, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipTransformMatrixPoints.
parent
f28262b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
matrix.c
dlls/gdiplus/matrix.c
+21
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
47a605ef
...
...
@@ -582,7 +582,7 @@
@ stub GdipStringFormatGetGenericDefault
@ stub GdipStringFormatGetGenericTypographic
@ stub GdipTestControl
@ st
ub GdipTransformMatrixPoints
@ st
dcall GdipTransformMatrixPoints(ptr ptr long)
@ stub GdipTransformMatrixPointsI
@ stub GdipTransformPath
@ stub GdipTransformPoints
...
...
dlls/gdiplus/matrix.c
View file @
47a605ef
...
...
@@ -56,3 +56,24 @@ GpStatus WINGDIPAPI GdipDeleteMatrix(GpMatrix *matrix)
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipTransformMatrixPoints
(
GpMatrix
*
matrix
,
GpPointF
*
pts
,
INT
count
)
{
REAL
x
,
y
;
INT
i
;
if
(
!
matrix
||
!
pts
)
return
InvalidParameter
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
x
=
pts
[
i
].
X
;
y
=
pts
[
i
].
Y
;
pts
[
i
].
X
=
x
*
matrix
->
matrix
[
0
]
+
y
*
matrix
->
matrix
[
2
]
+
matrix
->
matrix
[
4
];
pts
[
i
].
Y
=
x
*
matrix
->
matrix
[
1
]
+
y
*
matrix
->
matrix
[
3
]
+
matrix
->
matrix
[
5
];
}
return
Ok
;
}
include/gdiplusflat.h
View file @
47a605ef
...
...
@@ -62,6 +62,7 @@ GpStatus WINGDIPAPI GdipStartPathFigure(GpPath*);
GpStatus
WINGDIPAPI
GdipCreateMatrix2
(
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
GpMatrix
**
);
GpStatus
WINGDIPAPI
GdipDeleteMatrix
(
GpMatrix
*
);
GpStatus
WINGDIPAPI
GdipTransformMatrixPoints
(
GpMatrix
*
,
GpPointF
*
,
INT
);
#ifdef __cplusplus
}
...
...
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