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
628c9a69
Commit
628c9a69
authored
Jul 17, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipClonePen.
parent
76fe458e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
pen.c
dlls/gdiplus/pen.c
+22
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
628c9a69
...
...
@@ -51,7 +51,7 @@
@ stub GdipCloneImageAttributes
@ stub GdipCloneMatrix
@ stub GdipClonePath
@ st
ub GdipClonePen
@ st
dcall GdipClonePen(ptr ptr)
@ stub GdipCloneRegion
@ stub GdipCloneStringFormat
@ stdcall GdipClosePathFigure(ptr)
...
...
dlls/gdiplus/pen.c
View file @
628c9a69
...
...
@@ -65,6 +65,28 @@ static DWORD gdip_to_gdi_join(GpLineJoin join)
}
}
GpStatus
WINGDIPAPI
GdipClonePen
(
GpPen
*
pen
,
GpPen
**
clonepen
)
{
LOGBRUSH
lb
;
if
(
!
pen
||
!
clonepen
)
return
InvalidParameter
;
*
clonepen
=
GdipAlloc
(
sizeof
(
GpPen
));
if
(
!*
clonepen
)
return
OutOfMemory
;
memcpy
(
*
clonepen
,
pen
,
sizeof
(
GpPen
));
lb
.
lbStyle
=
BS_SOLID
;
lb
.
lbColor
=
(
*
clonepen
)
->
color
;
lb
.
lbHatch
=
0
;
(
*
clonepen
)
->
gdipen
=
ExtCreatePen
((
*
clonepen
)
->
style
,
roundr
((
*
clonepen
)
->
width
),
&
lb
,
0
,
NULL
);
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipCreatePen1
(
ARGB
color
,
FLOAT
width
,
GpUnit
unit
,
GpPen
**
pen
)
{
...
...
include/gdiplusflat.h
View file @
628c9a69
...
...
@@ -27,6 +27,7 @@
extern
"C"
{
#endif
GpStatus
WINGDIPAPI
GdipClonePen
(
GpPen
*
,
GpPen
**
);
GpStatus
WINGDIPAPI
GdipCreatePen1
(
ARGB
,
REAL
,
GpUnit
,
GpPen
**
);
GpStatus
WINGDIPAPI
GdipDeletePen
(
GpPen
*
);
GpStatus
WINGDIPAPI
GdipSetPenDashStyle
(
GpPen
*
,
GpDashStyle
);
...
...
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