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
bb16c926
Commit
bb16c926
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 GdipFillClosedCurve2 implementation.
parent
33895828
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
17 deletions
+7
-17
graphics.c
dlls/gdiplus/graphics.c
+7
-17
No files found.
dlls/gdiplus/graphics.c
View file @
bb16c926
...
...
@@ -3486,7 +3486,7 @@ GpStatus WINGDIPAPI GdipFillClosedCurve2(GpGraphics *graphics, GpBrush *brush,
GDIPCONST
GpPointF
*
points
,
INT
count
,
REAL
tension
,
GpFillMode
fill
)
{
GpPath
*
path
;
GpStatus
stat
;
GpStatus
stat
us
;
TRACE
(
"(%p, %p, %p, %d, %.2f, %d)
\n
"
,
graphics
,
brush
,
points
,
count
,
tension
,
fill
);
...
...
@@ -3500,25 +3500,15 @@ GpStatus WINGDIPAPI GdipFillClosedCurve2(GpGraphics *graphics, GpBrush *brush,
if
(
count
==
1
)
/* Do nothing */
return
Ok
;
stat
=
GdipCreatePath
(
fill
,
&
path
);
if
(
stat
!=
Ok
)
return
stat
;
stat
=
GdipAddPathClosedCurve2
(
path
,
points
,
count
,
tension
);
if
(
stat
!=
Ok
){
GdipDeletePath
(
path
);
return
stat
;
}
status
=
GdipCreatePath
(
fill
,
&
path
);
if
(
status
!=
Ok
)
return
status
;
stat
=
GdipFillPath
(
graphics
,
brush
,
path
);
if
(
stat
!=
Ok
){
GdipDeletePath
(
path
);
return
stat
;
}
status
=
GdipAddPathClosedCurve2
(
path
,
points
,
count
,
tension
);
if
(
status
==
Ok
)
status
=
GdipFillPath
(
graphics
,
brush
,
path
);
GdipDeletePath
(
path
);
return
Ok
;
return
status
;
}
GpStatus
WINGDIPAPI
GdipFillClosedCurve2I
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
...
...
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