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
fe1782ee
Commit
fe1782ee
authored
Apr 29, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipDrawCurve/GdipDrawCurveI.
parent
00cfffbc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
2 deletions
+33
-2
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
graphics.c
dlls/gdiplus/graphics.c
+31
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
fe1782ee
...
...
@@ -167,8 +167,8 @@
@ stdcall GdipDrawCurve2I(ptr ptr ptr long long)
@ stub GdipDrawCurve3
@ stub GdipDrawCurve3I
@ st
ub GdipDrawCurve
@ st
ub GdipDrawCurveI
@ st
dcall GdipDrawCurve(ptr ptr ptr long)
@ st
dcall GdipDrawCurveI(ptr ptr ptr long)
@ stub GdipDrawDriverString
@ stub GdipDrawEllipse
@ stub GdipDrawEllipseI
...
...
dlls/gdiplus/graphics.c
View file @
fe1782ee
...
...
@@ -1006,6 +1006,37 @@ GpStatus WINGDIPAPI GdipDrawBezierI(GpGraphics *graphics, GpPen *pen, INT x1,
return
retval
;
}
GpStatus
WINGDIPAPI
GdipDrawCurve
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
GDIPCONST
GpPointF
*
points
,
INT
count
)
{
return
GdipDrawCurve2
(
graphics
,
pen
,
points
,
count
,
1
.
0
);
}
GpStatus
WINGDIPAPI
GdipDrawCurveI
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
GDIPCONST
GpPoint
*
points
,
INT
count
)
{
GpPointF
*
pointsF
;
GpStatus
ret
;
INT
i
;
if
(
!
points
||
count
<=
0
)
return
InvalidParameter
;
pointsF
=
GdipAlloc
(
sizeof
(
GpPointF
)
*
count
);
if
(
!
pointsF
)
return
OutOfMemory
;
for
(
i
=
0
;
i
<
count
;
i
++
){
pointsF
[
i
].
X
=
(
REAL
)
points
[
i
].
X
;
pointsF
[
i
].
Y
=
(
REAL
)
points
[
i
].
Y
;
}
ret
=
GdipDrawCurve
(
graphics
,
pen
,
pointsF
,
count
);
GdipFree
(
pointsF
);
return
ret
;
}
/* Approximates cardinal spline with Bezier curves. */
GpStatus
WINGDIPAPI
GdipDrawCurve2
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
GDIPCONST
GpPointF
*
points
,
INT
count
,
REAL
tension
)
...
...
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