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,
...
@@ -2726,7 +2726,7 @@ GpStatus WINGDIPAPI GdipDrawClosedCurve2(GpGraphics *graphics, GpPen *pen,
GDIPCONST
GpPointF
*
points
,
INT
count
,
REAL
tension
)
GDIPCONST
GpPointF
*
points
,
INT
count
,
REAL
tension
)
{
{
GpPath
*
path
;
GpPath
*
path
;
GpStatus
stat
;
GpStatus
stat
us
;
TRACE
(
"(%p, %p, %p, %d, %.2f)
\n
"
,
graphics
,
pen
,
points
,
count
,
tension
);
TRACE
(
"(%p, %p, %p, %d, %.2f)
\n
"
,
graphics
,
pen
,
points
,
count
,
tension
);
...
@@ -2736,20 +2736,16 @@ GpStatus WINGDIPAPI GdipDrawClosedCurve2(GpGraphics *graphics, GpPen *pen,
...
@@ -2736,20 +2736,16 @@ GpStatus WINGDIPAPI GdipDrawClosedCurve2(GpGraphics *graphics, GpPen *pen,
if
(
graphics
->
busy
)
if
(
graphics
->
busy
)
return
ObjectBusy
;
return
ObjectBusy
;
if
((
stat
=
GdipCreatePath
(
FillModeAlternate
,
&
path
))
!=
Ok
)
status
=
GdipCreatePath
(
FillModeAlternate
,
&
path
);
return
stat
;
if
(
status
!=
Ok
)
return
status
;
stat
=
GdipAddPathClosedCurve2
(
path
,
points
,
count
,
tension
);
status
=
GdipAddPathClosedCurve2
(
path
,
points
,
count
,
tension
);
if
(
stat
!=
Ok
){
if
(
status
==
Ok
)
GdipDeletePath
(
path
);
status
=
GdipDrawPath
(
graphics
,
pen
,
path
);
return
stat
;
}
stat
=
GdipDrawPath
(
graphics
,
pen
,
path
);
GdipDeletePath
(
path
);
GdipDeletePath
(
path
);
return
stat
;
return
stat
us
;
}
}
GpStatus
WINGDIPAPI
GdipDrawClosedCurve2I
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
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