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
daf00ab7
Commit
daf00ab7
authored
Jul 16, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jul 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipSetPenDashStyle.
parent
1182162d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
2 deletions
+60
-2
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+2
-1
pen.c
dlls/gdiplus/pen.c
+44
-0
gdiplusenums.h
include/gdiplusenums.h
+11
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
gdiplusgpstubs.h
include/gdiplusgpstubs.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
daf00ab7
...
...
@@ -549,7 +549,7 @@
@ stub GdipSetPenDashArray
@ stub GdipSetPenDashCap197819
@ stub GdipSetPenDashOffset
@ st
ub GdipSetPenDashStyle
@ st
dcall GdipSetPenDashStyle(ptr long)
@ stdcall GdipSetPenEndCap(ptr long)
@ stdcall GdipSetPenLineCap197819(ptr long long long)
@ stdcall GdipSetPenLineJoin(ptr long)
...
...
dlls/gdiplus/gdiplus_private.h
View file @
daf00ab7
...
...
@@ -23,7 +23,7 @@
#include "windef.h"
#include "gdiplus.h"
#define GP_DEFAULT_PENSTYLE (PS_GEOMETRIC | PS_ENDCAP_FLAT | PS_JOIN_MITER)
#define GP_DEFAULT_PENSTYLE (PS_GEOMETRIC | PS_
SOLID | PS_
ENDCAP_FLAT | PS_JOIN_MITER)
#define MAX_ARC_PTS (13)
COLORREF
ARGB2COLORREF
(
ARGB
color
);
...
...
@@ -51,6 +51,7 @@ struct GpPen{
GpDashCap
dashcap
;
GpLineJoin
join
;
REAL
miterlimit
;
GpDashStyle
dash
;
};
struct
GpGraphics
{
...
...
dlls/gdiplus/pen.c
View file @
daf00ab7
...
...
@@ -27,6 +27,28 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
gdiplus
);
static
DWORD
gdip_to_gdi_dash
(
GpDashStyle
dash
)
{
switch
(
dash
){
case
DashStyleSolid
:
return
PS_SOLID
;
case
DashStyleDash
:
return
PS_DASH
;
case
DashStyleDot
:
return
PS_DOT
;
case
DashStyleDashDot
:
return
PS_DASHDOT
;
case
DashStyleDashDotDot
:
return
PS_DASHDOTDOT
;
case
DashStyleCustom
:
FIXME
(
"DashStyleCustom not implemented
\n
"
);
return
PS_SOLID
;
default:
ERR
(
"Not a member of GpDashStyle enumeration
\n
"
);
return
0
;
}
}
static
DWORD
gdip_to_gdi_join
(
GpLineJoin
join
)
{
switch
(
join
){
...
...
@@ -91,6 +113,28 @@ GpStatus WINGDIPAPI GdipDeletePen(GpPen *pen)
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetPenDashStyle
(
GpPen
*
pen
,
GpDashStyle
dash
)
{
LOGBRUSH
lb
;
if
(
!
pen
)
return
InvalidParameter
;
DeleteObject
(
pen
->
gdipen
);
pen
->
dash
=
dash
;
pen
->
style
&=
~
(
PS_ALTERNATE
|
PS_SOLID
|
PS_DASH
|
PS_DOT
|
PS_DASHDOT
|
PS_DASHDOTDOT
|
PS_NULL
|
PS_USERSTYLE
|
PS_INSIDEFRAME
);
pen
->
style
|=
gdip_to_gdi_dash
(
dash
);
lb
.
lbStyle
=
BS_SOLID
;
lb
.
lbColor
=
pen
->
color
;
lb
.
lbHatch
=
0
;
pen
->
gdipen
=
ExtCreatePen
(
pen
->
style
,
(
INT
)
pen
->
width
,
&
lb
,
0
,
NULL
);
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetPenEndCap
(
GpPen
*
pen
,
GpLineCap
cap
)
{
if
(
!
pen
)
return
InvalidParameter
;
...
...
include/gdiplusenums.h
View file @
daf00ab7
...
...
@@ -141,6 +141,16 @@ enum DashCap
DashCapTriangle
=
3
};
enum
DashStyle
{
DashStyleSolid
,
DashStyleDash
,
DashStyleDot
,
DashStyleDashDot
,
DashStyleDashDotDot
,
DashStyleCustom
};
#ifndef __cplusplus
typedef
enum
Unit
Unit
;
...
...
@@ -155,6 +165,7 @@ typedef enum CompositingQuality CompositingQuality;
typedef
enum
InterpolationMode
InterpolationMode
;
typedef
enum
PixelOffsetMode
PixelOffsetMode
;
typedef
enum
DashCap
DashCap
;
typedef
enum
DashStyle
DashStyle
;
#endif
/* end of c typedefs */
...
...
include/gdiplusflat.h
View file @
daf00ab7
...
...
@@ -29,6 +29,7 @@ extern "C" {
GpStatus
WINGDIPAPI
GdipCreatePen1
(
ARGB
,
REAL
,
GpUnit
,
GpPen
**
);
GpStatus
WINGDIPAPI
GdipDeletePen
(
GpPen
*
);
GpStatus
WINGDIPAPI
GdipSetPenDashStyle
(
GpPen
*
,
GpDashStyle
);
GpStatus
WINGDIPAPI
GdipSetPenEndCap
(
GpPen
*
,
GpLineCap
);
GpStatus
WINGDIPAPI
GdipSetPenLineCap197819
(
GpPen
*
,
GpLineCap
,
GpLineCap
,
GpDashCap
);
GpStatus
WINGDIPAPI
GdipSetPenLineJoin
(
GpPen
*
,
GpLineJoin
);
...
...
include/gdiplusgpstubs.h
View file @
daf00ab7
...
...
@@ -51,5 +51,6 @@ typedef LineCap GpLineCap;
typedef
RectF
GpRectF
;
typedef
LineJoin
GpLineJoin
;
typedef
DashCap
GpDashCap
;
typedef
DashStyle
GpDashStyle
;
#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