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
831729ad
Commit
831729ad
authored
Aug 03, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipAddPathClosedCurve2I using GdipAddPathClosedCurve2.
parent
8be642c4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletion
+28
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphicspath.c
dlls/gdiplus/graphicspath.c
+26
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
831729ad
...
...
@@ -5,7 +5,7 @@
@ stdcall GdipAddPathBeziers(ptr ptr long)
@ stdcall GdipAddPathBeziersI(ptr ptr long)
@ stdcall GdipAddPathClosedCurve2(ptr ptr long long)
@ st
ub GdipAddPathClosedCurve2I
@ st
dcall GdipAddPathClosedCurve2I(ptr ptr long long)
@ stub GdipAddPathClosedCurve
@ stub GdipAddPathClosedCurveI
@ stdcall GdipAddPathCurve2(ptr ptr long long)
...
...
dlls/gdiplus/graphicspath.c
View file @
831729ad
...
...
@@ -265,6 +265,32 @@ GpStatus WINGDIPAPI GdipAddPathClosedCurve2(GpPath *path, GDIPCONST GpPointF *po
return
stat
;
}
GpStatus
WINGDIPAPI
GdipAddPathClosedCurve2I
(
GpPath
*
path
,
GDIPCONST
GpPoint
*
points
,
INT
count
,
REAL
tension
)
{
GpPointF
*
ptf
;
INT
i
;
GpStatus
stat
;
if
(
!
path
||
!
points
||
count
<=
1
)
return
InvalidParameter
;
ptf
=
GdipAlloc
(
sizeof
(
GpPointF
)
*
count
);
if
(
!
ptf
)
return
OutOfMemory
;
for
(
i
=
0
;
i
<
count
;
i
++
){
ptf
[
i
].
X
=
(
REAL
)
points
[
i
].
X
;
ptf
[
i
].
Y
=
(
REAL
)
points
[
i
].
Y
;
}
stat
=
GdipAddPathClosedCurve2
(
path
,
ptf
,
count
,
tension
);
GdipFree
(
ptf
);
return
stat
;
}
GpStatus
WINGDIPAPI
GdipAddPathCurve
(
GpPath
*
path
,
GDIPCONST
GpPointF
*
points
,
INT
count
)
{
if
(
!
path
||
!
points
||
count
<=
1
)
...
...
include/gdiplusflat.h
View file @
831729ad
...
...
@@ -247,6 +247,7 @@ GpStatus WINGDIPAPI GdipAddPathBezierI(GpPath*,INT,INT,INT,INT,INT,INT,INT,INT);
GpStatus
WINGDIPAPI
GdipAddPathBeziers
(
GpPath
*
,
GDIPCONST
GpPointF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipAddPathBeziersI
(
GpPath
*
,
GDIPCONST
GpPoint
*
,
INT
);
GpStatus
WINGDIPAPI
GdipAddPathClosedCurve2
(
GpPath
*
,
GDIPCONST
GpPointF
*
,
INT
,
REAL
);
GpStatus
WINGDIPAPI
GdipAddPathClosedCurve2I
(
GpPath
*
,
GDIPCONST
GpPoint
*
,
INT
,
REAL
);
GpStatus
WINGDIPAPI
GdipAddPathCurve
(
GpPath
*
,
GDIPCONST
GpPointF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipAddPathCurveI
(
GpPath
*
,
GDIPCONST
GpPoint
*
,
INT
);
GpStatus
WINGDIPAPI
GdipAddPathCurve2
(
GpPath
*
,
GDIPCONST
GpPointF
*
,
INT
,
REAL
);
...
...
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