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
bba20a68
Commit
bba20a68
authored
Aug 01, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipClonePath.
parent
fdf9f8fb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphicspath.c
dlls/gdiplus/graphicspath.c
+26
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
bba20a68
...
...
@@ -55,7 +55,7 @@
@ stub GdipCloneImage
@ stub GdipCloneImageAttributes
@ stdcall GdipCloneMatrix(ptr ptr)
@ st
ub GdipClonePath
@ st
dcall GdipClonePath(ptr ptr)
@ stdcall GdipClonePen(ptr ptr)
@ stub GdipCloneRegion
@ stub GdipCloneStringFormat
...
...
dlls/gdiplus/graphicspath.c
View file @
bba20a68
...
...
@@ -212,6 +212,32 @@ GpStatus WINGDIPAPI GdipAddPathPath(GpPath *path, GDIPCONST GpPath* addingPath,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipClonePath
(
GpPath
*
path
,
GpPath
**
clone
)
{
if
(
!
path
||
!
clone
)
return
InvalidParameter
;
*
clone
=
GdipAlloc
(
sizeof
(
GpPath
));
if
(
!*
clone
)
return
OutOfMemory
;
memcpy
(
*
clone
,
path
,
sizeof
(
GpPath
));
(
*
clone
)
->
pathdata
.
Points
=
GdipAlloc
(
path
->
datalen
*
sizeof
(
PointF
));
(
*
clone
)
->
pathdata
.
Types
=
GdipAlloc
(
path
->
datalen
);
if
(
!
(
*
clone
)
->
pathdata
.
Points
||
!
(
*
clone
)
->
pathdata
.
Types
){
GdipFree
(
*
clone
);
GdipFree
((
*
clone
)
->
pathdata
.
Points
);
GdipFree
((
*
clone
)
->
pathdata
.
Types
);
return
OutOfMemory
;
}
memcpy
((
*
clone
)
->
pathdata
.
Points
,
path
->
pathdata
.
Points
,
path
->
datalen
*
sizeof
(
PointF
));
memcpy
((
*
clone
)
->
pathdata
.
Types
,
path
->
pathdata
.
Types
,
path
->
datalen
);
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipClosePathFigure
(
GpPath
*
path
)
{
if
(
!
path
)
...
...
include/gdiplusflat.h
View file @
bba20a68
...
...
@@ -97,6 +97,7 @@ GpStatus WINGDIPAPI GdipAddPathBeziers(GpPath*,GDIPCONST GpPointF*,INT);
GpStatus
WINGDIPAPI
GdipAddPathEllipse
(
GpPath
*
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipAddPathLine2
(
GpPath
*
,
GDIPCONST
GpPointF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipAddPathPath
(
GpPath
*
,
GDIPCONST
GpPath
*
,
BOOL
);
GpStatus
WINGDIPAPI
GdipClonePath
(
GpPath
*
,
GpPath
**
);
GpStatus
WINGDIPAPI
GdipClosePathFigure
(
GpPath
*
);
GpStatus
WINGDIPAPI
GdipClosePathFigures
(
GpPath
*
);
GpStatus
WINGDIPAPI
GdipCreatePath
(
GpFillMode
,
GpPath
**
);
...
...
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