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
9c60a57a
Commit
9c60a57a
authored
Sep 03, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Fix curve closing in GdipDrawClosedCurve2.
parent
72304d83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
graphics.c
dlls/gdiplus/graphics.c
+10
-10
No files found.
dlls/gdiplus/graphics.c
View file @
9c60a57a
...
...
@@ -1102,7 +1102,7 @@ GpStatus WINGDIPAPI GdipDrawClosedCurveI(GpGraphics *graphics, GpPen *pen,
GpStatus
WINGDIPAPI
GdipDrawClosedCurve2
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
GDIPCONST
GpPointF
*
points
,
INT
count
,
REAL
tension
)
{
GpP
ointF
*
ptf
;
GpP
ath
*
path
;
GpStatus
stat
;
TRACE
(
"(%p, %p, %p, %d, %.2f)
\n
"
,
graphics
,
pen
,
points
,
count
,
tension
);
...
...
@@ -1113,18 +1113,18 @@ GpStatus WINGDIPAPI GdipDrawClosedCurve2(GpGraphics *graphics, GpPen *pen,
if
(
graphics
->
busy
)
return
ObjectBusy
;
/* make a full points copy.. */
ptf
=
GdipAlloc
(
sizeof
(
GpPointF
)
*
(
count
+
1
));
if
(
!
ptf
)
return
OutOfMemory
;
memcpy
(
ptf
,
points
,
sizeof
(
GpPointF
)
*
count
);
if
((
stat
=
GdipCreatePath
(
FillModeAlternate
,
&
path
))
!=
Ok
)
return
stat
;
/* ..and add a first point as a last one */
ptf
[
count
]
=
ptf
[
0
];
stat
=
GdipAddPathClosedCurve2
(
path
,
points
,
count
,
tension
);
if
(
stat
!=
Ok
){
GdipDeletePath
(
path
);
return
stat
;
}
stat
=
GdipDraw
Curve2
(
graphics
,
pen
,
ptf
,
count
+
1
,
tension
);
stat
=
GdipDraw
Path
(
graphics
,
pen
,
path
);
Gdip
Free
(
ptf
);
Gdip
DeletePath
(
path
);
return
stat
;
}
...
...
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