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
b5d7af54
Commit
b5d7af54
authored
Aug 08, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipGetPenDashOffset/GdipSetPenDashOffset.
parent
ff2e63d4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
2 deletions
+27
-2
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+1
-0
pen.c
dlls/gdiplus/pen.c
+22
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
b5d7af54
...
...
@@ -357,7 +357,7 @@
@ stdcall GdipGetPenDashArray(ptr ptr long)
@ stub GdipGetPenDashCap197819
@ stub GdipGetPenDashCount
@ st
ub GdipGetPenDashOffset
@ st
dcall GdipGetPenDashOffset(ptr ptr)
@ stdcall GdipGetPenDashStyle(ptr ptr)
@ stub GdipGetPenEndCap
@ stub GdipGetPenFillType
...
...
@@ -569,7 +569,7 @@
@ stdcall GdipSetPenCustomStartCap(ptr ptr)
@ stdcall GdipSetPenDashArray(ptr ptr long)
@ stub GdipSetPenDashCap197819
@ st
ub GdipSetPenDashOffset
@ st
dcall GdipSetPenDashOffset(ptr long)
@ stdcall GdipSetPenDashStyle(ptr long)
@ stdcall GdipSetPenEndCap(ptr long)
@ stdcall GdipSetPenLineCap197819(ptr long long long)
...
...
dlls/gdiplus/gdiplus_private.h
View file @
b5d7af54
...
...
@@ -68,6 +68,7 @@ struct GpPen{
GpDashStyle
dash
;
REAL
*
dashes
;
INT
numdashes
;
REAL
offset
;
/* dash offset */
GpBrush
*
brush
;
};
...
...
dlls/gdiplus/pen.c
View file @
b5d7af54
...
...
@@ -102,6 +102,7 @@ GpStatus WINGDIPAPI GdipCreatePen1(ARGB color, REAL width, GpUnit unit,
gp_pen
->
join
=
LineJoinMiter
;
gp_pen
->
miterlimit
=
10
.
0
;
gp_pen
->
dash
=
DashStyleSolid
;
gp_pen
->
offset
=
0
.
0
;
GdipCreateSolidFill
(
color
,
(
GpSolidFill
**
)(
&
gp_pen
->
brush
));
if
(
!
((
gp_pen
->
unit
==
UnitWorld
)
||
(
gp_pen
->
unit
==
UnitPixel
)))
{
...
...
@@ -161,6 +162,16 @@ GpStatus WINGDIPAPI GdipGetPenDashArray(GpPen *pen, REAL *dash, INT count)
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetPenDashOffset
(
GpPen
*
pen
,
REAL
*
offset
)
{
if
(
!
pen
||
!
offset
)
return
InvalidParameter
;
*
offset
=
pen
->
offset
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipGetPenDashStyle
(
GpPen
*
pen
,
GpDashStyle
*
dash
)
{
if
(
!
pen
||
!
dash
)
...
...
@@ -258,6 +269,17 @@ GpStatus WINGDIPAPI GdipSetPenDashArray(GpPen *pen, GDIPCONST REAL *dash,
return
Ok
;
}
/* FIXME: dash offset not used */
GpStatus
WINGDIPAPI
GdipSetPenDashOffset
(
GpPen
*
pen
,
REAL
offset
)
{
if
(
!
pen
)
return
InvalidParameter
;
pen
->
offset
=
offset
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetPenDashStyle
(
GpPen
*
pen
,
GpDashStyle
dash
)
{
if
(
!
pen
)
...
...
include/gdiplusflat.h
View file @
b5d7af54
...
...
@@ -33,12 +33,14 @@ GpStatus WINGDIPAPI GdipDeletePen(GpPen*);
GpStatus
WINGDIPAPI
GdipGetPenBrushFill
(
GpPen
*
,
GpBrush
**
);
GpStatus
WINGDIPAPI
GdipGetPenColor
(
GpPen
*
,
ARGB
*
);
GpStatus
WINGDIPAPI
GdipGetPenDashArray
(
GpPen
*
,
REAL
*
,
INT
);
GpStatus
WINGDIPAPI
GdipGetPenDashOffset
(
GpPen
*
,
REAL
*
);
GpStatus
WINGDIPAPI
GdipGetPenDashStyle
(
GpPen
*
,
GpDashStyle
*
);
GpStatus
WINGDIPAPI
GdipSetPenBrushFill
(
GpPen
*
,
GpBrush
*
);
GpStatus
WINGDIPAPI
GdipSetPenColor
(
GpPen
*
,
ARGB
);
GpStatus
WINGDIPAPI
GdipSetPenCustomEndCap
(
GpPen
*
,
GpCustomLineCap
*
);
GpStatus
WINGDIPAPI
GdipSetPenCustomStartCap
(
GpPen
*
,
GpCustomLineCap
*
);
GpStatus
WINGDIPAPI
GdipSetPenDashArray
(
GpPen
*
,
GDIPCONST
REAL
*
,
INT
);
GpStatus
WINGDIPAPI
GdipSetPenDashOffset
(
GpPen
*
,
REAL
);
GpStatus
WINGDIPAPI
GdipSetPenDashStyle
(
GpPen
*
,
GpDashStyle
);
GpStatus
WINGDIPAPI
GdipSetPenEndCap
(
GpPen
*
,
GpLineCap
);
GpStatus
WINGDIPAPI
GdipSetPenLineCap197819
(
GpPen
*
,
GpLineCap
,
GpLineCap
,
GpDashCap
);
...
...
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