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
ff2e63d4
Commit
ff2e63d4
authored
Aug 08, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipCreatePath2.
parent
ebadbd4b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletion
+33
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphicspath.c
dlls/gdiplus/graphicspath.c
+30
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
ff2e63d4
...
...
@@ -113,7 +113,7 @@
@ stub GdipCreateMetafileFromStream
@ stdcall GdipCreateMetafileFromWmf(ptr long ptr ptr)
@ stub GdipCreateMetafileFromWmfFile
@ st
ub GdipCreatePath2
@ st
dcall GdipCreatePath2(ptr ptr long long ptr)
@ stub GdipCreatePath2I
@ stdcall GdipCreatePath(long ptr)
@ stdcall GdipCreatePathGradient(ptr long long ptr)
...
...
dlls/gdiplus/graphicspath.c
View file @
ff2e63d4
...
...
@@ -282,6 +282,36 @@ GpStatus WINGDIPAPI GdipCreatePath(GpFillMode fill, GpPath **path)
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipCreatePath2
(
GDIPCONST
GpPointF
*
points
,
GDIPCONST
BYTE
*
types
,
INT
count
,
GpFillMode
fill
,
GpPath
**
path
)
{
if
(
!
path
)
return
InvalidParameter
;
*
path
=
GdipAlloc
(
sizeof
(
GpPath
));
if
(
!*
path
)
return
OutOfMemory
;
(
*
path
)
->
pathdata
.
Points
=
GdipAlloc
(
count
*
sizeof
(
PointF
));
(
*
path
)
->
pathdata
.
Types
=
GdipAlloc
(
count
);
if
(
!
(
*
path
)
->
pathdata
.
Points
||
!
(
*
path
)
->
pathdata
.
Types
){
GdipFree
((
*
path
)
->
pathdata
.
Points
);
GdipFree
((
*
path
)
->
pathdata
.
Types
);
GdipFree
(
*
path
);
return
OutOfMemory
;
}
memcpy
((
*
path
)
->
pathdata
.
Points
,
points
,
count
*
sizeof
(
PointF
));
memcpy
((
*
path
)
->
pathdata
.
Types
,
types
,
count
);
(
*
path
)
->
pathdata
.
Count
=
count
;
(
*
path
)
->
datalen
=
count
;
(
*
path
)
->
fill
=
fill
;
(
*
path
)
->
newfigure
=
TRUE
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipDeletePath
(
GpPath
*
path
)
{
if
(
!
path
)
...
...
include/gdiplusflat.h
View file @
ff2e63d4
...
...
@@ -130,6 +130,8 @@ GpStatus WINGDIPAPI GdipClonePath(GpPath*,GpPath**);
GpStatus
WINGDIPAPI
GdipClosePathFigure
(
GpPath
*
);
GpStatus
WINGDIPAPI
GdipClosePathFigures
(
GpPath
*
);
GpStatus
WINGDIPAPI
GdipCreatePath
(
GpFillMode
,
GpPath
**
);
GpStatus
WINGDIPAPI
GdipCreatePath2
(
GDIPCONST
GpPointF
*
,
GDIPCONST
BYTE
*
,
INT
,
GpFillMode
,
GpPath
**
);
GpStatus
WINGDIPAPI
GdipDeletePath
(
GpPath
*
);
GpStatus
WINGDIPAPI
GdipFillPolygon
(
GpGraphics
*
,
GpBrush
*
,
GDIPCONST
GpPointF
*
,
INT
,
GpFillMode
);
...
...
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