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
4233b828
Commit
4233b828
authored
Feb 19, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Slightly simplify GdipDrawClosedCurve2 implementation.
parent
cc54d1eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
graphics.c
dlls/gdiplus/graphics.c
+7
-11
No files found.
dlls/gdiplus/graphics.c
View file @
4233b828
...
...
@@ -2726,7 +2726,7 @@ GpStatus WINGDIPAPI GdipDrawClosedCurve2(GpGraphics *graphics, GpPen *pen,
GDIPCONST
GpPointF
*
points
,
INT
count
,
REAL
tension
)
{
GpPath
*
path
;
GpStatus
stat
;
GpStatus
stat
us
;
TRACE
(
"(%p, %p, %p, %d, %.2f)
\n
"
,
graphics
,
pen
,
points
,
count
,
tension
);
...
...
@@ -2736,20 +2736,16 @@ GpStatus WINGDIPAPI GdipDrawClosedCurve2(GpGraphics *graphics, GpPen *pen,
if
(
graphics
->
busy
)
return
ObjectBusy
;
if
((
stat
=
GdipCreatePath
(
FillModeAlternate
,
&
path
))
!=
Ok
)
return
stat
;
status
=
GdipCreatePath
(
FillModeAlternate
,
&
path
);
if
(
status
!=
Ok
)
return
status
;
stat
=
GdipAddPathClosedCurve2
(
path
,
points
,
count
,
tension
);
if
(
stat
!=
Ok
){
GdipDeletePath
(
path
);
return
stat
;
}
stat
=
GdipDrawPath
(
graphics
,
pen
,
path
);
status
=
GdipAddPathClosedCurve2
(
path
,
points
,
count
,
tension
);
if
(
status
==
Ok
)
status
=
GdipDrawPath
(
graphics
,
pen
,
path
);
GdipDeletePath
(
path
);
return
stat
;
return
stat
us
;
}
GpStatus
WINGDIPAPI
GdipDrawClosedCurve2I
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
...
...
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