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
f1fae5ea
Commit
f1fae5ea
authored
Jun 19, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Jun 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: GdipCreatePen2 should make a copy of the brush.
parent
d9fa8738
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
pen.c
dlls/gdiplus/pen.c
+9
-2
No files found.
dlls/gdiplus/pen.c
View file @
f1fae5ea
...
@@ -88,14 +88,19 @@ GpStatus WINGDIPAPI GdipCreatePen1(ARGB color, REAL width, GpUnit unit,
...
@@ -88,14 +88,19 @@ GpStatus WINGDIPAPI GdipCreatePen1(ARGB color, REAL width, GpUnit unit,
GpPen
**
pen
)
GpPen
**
pen
)
{
{
GpBrush
*
brush
;
GpBrush
*
brush
;
GpStatus
status
;
GdipCreateSolidFill
(
color
,
(
GpSolidFill
**
)(
&
brush
));
GdipCreateSolidFill
(
color
,
(
GpSolidFill
**
)(
&
brush
));
return
GdipCreatePen2
(
brush
,
width
,
unit
,
pen
);
status
=
GdipCreatePen2
(
brush
,
width
,
unit
,
pen
);
GdipDeleteBrush
(
brush
);
return
status
;
}
}
GpStatus
WINGDIPAPI
GdipCreatePen2
(
GpBrush
*
brush
,
REAL
width
,
GpUnit
unit
,
GpStatus
WINGDIPAPI
GdipCreatePen2
(
GpBrush
*
brush
,
REAL
width
,
GpUnit
unit
,
GpPen
**
pen
)
GpPen
**
pen
)
{
{
GpPen
*
gp_pen
;
GpPen
*
gp_pen
;
GpBrush
*
clone_brush
;
if
(
!
pen
||
!
brush
)
if
(
!
pen
||
!
brush
)
return
InvalidParameter
;
return
InvalidParameter
;
...
@@ -111,7 +116,6 @@ GpStatus WINGDIPAPI GdipCreatePen2(GpBrush *brush, REAL width, GpUnit unit,
...
@@ -111,7 +116,6 @@ GpStatus WINGDIPAPI GdipCreatePen2(GpBrush *brush, REAL width, GpUnit unit,
gp_pen
->
miterlimit
=
10
.
0
;
gp_pen
->
miterlimit
=
10
.
0
;
gp_pen
->
dash
=
DashStyleSolid
;
gp_pen
->
dash
=
DashStyleSolid
;
gp_pen
->
offset
=
0
.
0
;
gp_pen
->
offset
=
0
.
0
;
gp_pen
->
brush
=
brush
;
if
(
!
((
gp_pen
->
unit
==
UnitWorld
)
||
(
gp_pen
->
unit
==
UnitPixel
)))
{
if
(
!
((
gp_pen
->
unit
==
UnitWorld
)
||
(
gp_pen
->
unit
==
UnitPixel
)))
{
FIXME
(
"UnitWorld, UnitPixel only supported units
\n
"
);
FIXME
(
"UnitWorld, UnitPixel only supported units
\n
"
);
...
@@ -119,6 +123,9 @@ GpStatus WINGDIPAPI GdipCreatePen2(GpBrush *brush, REAL width, GpUnit unit,
...
@@ -119,6 +123,9 @@ GpStatus WINGDIPAPI GdipCreatePen2(GpBrush *brush, REAL width, GpUnit unit,
return
NotImplemented
;
return
NotImplemented
;
}
}
GdipCloneBrush
(
brush
,
&
clone_brush
);
gp_pen
->
brush
=
clone_brush
;
*
pen
=
gp_pen
;
*
pen
=
gp_pen
;
return
Ok
;
return
Ok
;
...
...
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