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
68ba30f4
Commit
68ba30f4
authored
Jul 05, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added SetPenEndCap.
parent
fff723d7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
1 deletion
+36
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+1
-0
pen.c
dlls/gdiplus/pen.c
+15
-0
gdiplusenums.h
include/gdiplusenums.h
+18
-0
gdiplusgpstubs.h
include/gdiplusgpstubs.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
68ba30f4
...
...
@@ -550,7 +550,7 @@
@ stub GdipSetPenDashCap197819
@ stub GdipSetPenDashOffset
@ stub GdipSetPenDashStyle
@ st
ub GdipSetPenEndCap
@ st
dcall GdipSetPenEndCap(ptr long)
@ stub GdipSetPenLineCap197819
@ stub GdipSetPenLineJoin
@ stub GdipSetPenMiterLimit
...
...
dlls/gdiplus/gdiplus_private.h
View file @
68ba30f4
...
...
@@ -32,6 +32,7 @@ struct GpPen{
GpUnit
unit
;
REAL
width
;
HPEN
gdipen
;
GpLineCap
endcap
;
};
struct
GpGraphics
{
...
...
dlls/gdiplus/pen.c
View file @
68ba30f4
...
...
@@ -43,6 +43,7 @@ GpStatus WINGDIPAPI GdipCreatePen1(ARGB color, FLOAT width, GpUnit unit,
gp_pen
->
color
=
ARGB2COLORREF
(
color
);
gp_pen
->
width
=
width
;
gp_pen
->
unit
=
unit
;
gp_pen
->
endcap
=
LineCapFlat
;
/* FIXME: Currently only solid lines supported. */
lb
.
lbStyle
=
BS_SOLID
;
...
...
@@ -71,3 +72,17 @@ GpStatus WINGDIPAPI GdipDeletePen(GpPen *pen)
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetPenEndCap
(
GpPen
*
pen
,
GpLineCap
cap
)
{
if
(
!
pen
)
return
InvalidParameter
;
if
(
cap
!=
LineCapFlat
){
FIXME
(
"Not implemented for non-flat EndCap
\n
"
);
return
NotImplemented
;
}
pen
->
endcap
=
cap
;
return
Ok
;
}
include/gdiplusenums.h
View file @
68ba30f4
...
...
@@ -45,11 +45,29 @@ enum FillMode
FillModeWinding
=
1
};
enum
LineCap
{
LineCapFlat
=
0x00
,
LineCapSquare
=
0x01
,
LineCapRound
=
0x02
,
LineCapTriangle
=
0x03
,
LineCapNoAnchor
=
0x10
,
LineCapSquareAnchor
=
0x11
,
LineCapRoundAnchor
=
0x12
,
LineCapDiamondAnchor
=
0x13
,
LineCapArrowAnchor
=
0x14
,
LineCapCustom
=
0xff
,
LineCapAnchorMask
=
0xf0
};
#ifndef __cplusplus
typedef
enum
Unit
Unit
;
typedef
enum
BrushType
BrushType
;
typedef
enum
FillMode
FillMode
;
typedef
enum
LineCap
LineCap
;
#endif
/* end of c typedefs */
...
...
include/gdiplusgpstubs.h
View file @
68ba30f4
...
...
@@ -43,5 +43,6 @@ typedef BrushType GpBrushType;
typedef
PointF
GpPointF
;
typedef
FillMode
GpFillMode
;
typedef
PathData
GpPathData
;
typedef
LineCap
GpLineCap
;
#endif
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