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
2c3142f0
Commit
2c3142f0
authored
Aug 14, 2013
by
Vincent Povirk
Committed by
Alexandre Julliard
Aug 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Copy custom dashes in GdipClonePen.
parent
dc047ecd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
pen.c
dlls/gdiplus/pen.c
+10
-0
No files found.
dlls/gdiplus/pen.c
View file @
2c3142f0
...
...
@@ -102,6 +102,7 @@ GpStatus WINGDIPAPI GdipClonePen(GpPen *pen, GpPen **clonepen)
(
*
clonepen
)
->
customstart
=
NULL
;
(
*
clonepen
)
->
customend
=
NULL
;
(
*
clonepen
)
->
brush
=
NULL
;
(
*
clonepen
)
->
dashes
=
NULL
;
stat
=
GdipCloneBrush
(
pen
->
brush
,
&
(
*
clonepen
)
->
brush
);
...
...
@@ -111,6 +112,15 @@ GpStatus WINGDIPAPI GdipClonePen(GpPen *pen, GpPen **clonepen)
if
(
stat
==
Ok
&&
pen
->
customend
)
stat
=
GdipCloneCustomLineCap
(
pen
->
customend
,
&
(
*
clonepen
)
->
customend
);
if
(
stat
==
Ok
&&
pen
->
dashes
)
{
(
*
clonepen
)
->
dashes
=
GdipAlloc
(
pen
->
numdashes
*
sizeof
(
REAL
));
if
((
*
clonepen
)
->
dashes
)
memcpy
((
*
clonepen
)
->
dashes
,
pen
->
dashes
,
pen
->
numdashes
*
sizeof
(
REAL
));
else
stat
=
OutOfMemory
;
}
if
(
stat
!=
Ok
)
{
GdipDeletePen
(
*
clonepen
);
...
...
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