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
ae576c40
Commit
ae576c40
authored
Apr 17, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipCreatePath2I.
parent
0f42f4c5
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
graphicspath.c
dlls/gdiplus/graphicspath.c
+21
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
ae576c40
...
...
@@ -114,7 +114,7 @@
@ stdcall GdipCreateMetafileFromWmf(ptr long ptr ptr)
@ stub GdipCreateMetafileFromWmfFile
@ stdcall GdipCreatePath2(ptr ptr long long ptr)
@ st
ub GdipCreatePath2I
@ st
dcall GdipCreatePath2I(ptr ptr long long ptr)
@ stdcall GdipCreatePath(long ptr)
@ stdcall GdipCreatePathGradient(ptr long long ptr)
@ stdcall GdipCreatePathGradientFromPath(ptr ptr)
...
...
dlls/gdiplus/graphicspath.c
View file @
ae576c40
...
...
@@ -403,6 +403,27 @@ GpStatus WINGDIPAPI GdipCreatePath2(GDIPCONST GpPointF* points,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipCreatePath2I
(
GDIPCONST
GpPoint
*
points
,
GDIPCONST
BYTE
*
types
,
INT
count
,
GpFillMode
fill
,
GpPath
**
path
)
{
GpPointF
*
ptF
;
GpStatus
ret
;
INT
i
;
ptF
=
GdipAlloc
(
sizeof
(
GpPointF
)
*
count
);
for
(
i
=
0
;
i
<
count
;
i
++
){
ptF
[
i
].
X
=
(
REAL
)
points
[
i
].
X
;
ptF
[
i
].
Y
=
(
REAL
)
points
[
i
].
Y
;
}
ret
=
GdipCreatePath2
(
ptF
,
types
,
count
,
fill
,
path
);
GdipFree
(
ptF
);
return
ret
;
}
GpStatus
WINGDIPAPI
GdipDeletePath
(
GpPath
*
path
)
{
if
(
!
path
)
...
...
include/gdiplusflat.h
View file @
ae576c40
...
...
@@ -198,6 +198,7 @@ GpStatus WINGDIPAPI GdipClosePathFigures(GpPath*);
GpStatus
WINGDIPAPI
GdipCreatePath
(
GpFillMode
,
GpPath
**
);
GpStatus
WINGDIPAPI
GdipCreatePath2
(
GDIPCONST
GpPointF
*
,
GDIPCONST
BYTE
*
,
INT
,
GpFillMode
,
GpPath
**
);
GpStatus
WINGDIPAPI
GdipCreatePath2I
(
GDIPCONST
GpPoint
*
,
GDIPCONST
BYTE
*
,
INT
,
GpFillMode
,
GpPath
**
);
GpStatus
WINGDIPAPI
GdipDeletePath
(
GpPath
*
);
GpStatus
WINGDIPAPI
GdipGetPathFillMode
(
GpPath
*
,
GpFillMode
*
);
GpStatus
WINGDIPAPI
GdipGetPathPoints
(
GpPath
*
,
GpPointF
*
,
INT
);
...
...
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