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
8b8864b7
Commit
8b8864b7
authored
Jul 09, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemeted GdipDrawClosedCurve2 and GdipDrawClosedCurve2I.
parent
3e59f9e2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
2 deletions
+55
-2
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
graphics.c
dlls/gdiplus/graphics.c
+51
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
8b8864b7
...
...
@@ -159,8 +159,8 @@
@ stdcall GdipDrawBeziers(ptr ptr ptr long)
@ stdcall GdipDrawBeziersI(ptr ptr ptr long)
@ stub GdipDrawCachedBitmap
@ st
ub GdipDrawClosedCurve2
@ st
ub GdipDrawClosedCurve2I
@ st
dcall GdipDrawClosedCurve2(ptr ptr ptr long long)
@ st
dcall GdipDrawClosedCurve2I(ptr ptr ptr long long)
@ stub GdipDrawClosedCurve
@ stub GdipDrawClosedCurveI
@ stdcall GdipDrawCurve2(ptr ptr ptr long long)
...
...
dlls/gdiplus/graphics.c
View file @
8b8864b7
...
...
@@ -1045,6 +1045,57 @@ GpStatus WINGDIPAPI GdipDrawBeziersI(GpGraphics *graphics, GpPen *pen,
return
ret
;
}
GpStatus
WINGDIPAPI
GdipDrawClosedCurve2
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
GDIPCONST
GpPointF
*
points
,
INT
count
,
REAL
tension
)
{
GpPointF
*
ptf
;
GpStatus
stat
;
if
(
!
graphics
||
!
pen
||
!
points
||
count
<=
0
)
return
InvalidParameter
;
/* make a full points copy.. */
ptf
=
GdipAlloc
(
sizeof
(
GpPointF
)
*
(
count
+
1
));
if
(
!
ptf
)
return
OutOfMemory
;
memcpy
(
ptf
,
points
,
sizeof
(
GpPointF
)
*
count
);
/* ..and add a first point as a last one */
ptf
[
count
]
=
ptf
[
0
];
stat
=
GdipDrawCurve2
(
graphics
,
pen
,
ptf
,
count
+
1
,
tension
);
GdipFree
(
ptf
);
return
stat
;
}
GpStatus
WINGDIPAPI
GdipDrawClosedCurve2I
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
GDIPCONST
GpPoint
*
points
,
INT
count
,
REAL
tension
)
{
GpPointF
*
ptf
;
GpStatus
stat
;
INT
i
;
if
(
!
points
||
count
<=
0
)
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
=
GdipDrawClosedCurve2
(
graphics
,
pen
,
ptf
,
count
,
tension
);
GdipFree
(
ptf
);
return
stat
;
}
GpStatus
WINGDIPAPI
GdipDrawCurve
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
GDIPCONST
GpPointF
*
points
,
INT
count
)
{
...
...
include/gdiplusflat.h
View file @
8b8864b7
...
...
@@ -85,6 +85,8 @@ GpStatus WINGDIPAPI GdipDrawBezier(GpGraphics*,GpPen*,REAL,REAL,REAL,REAL,REAL,R
GpStatus
WINGDIPAPI
GdipDrawBezierI
(
GpGraphics
*
,
GpPen
*
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawBeziers
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPointF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawBeziersI
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPoint
*
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawClosedCurve2
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPointF
*
,
INT
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawClosedCurve2I
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPoint
*
,
INT
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawCurve
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPointF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawCurveI
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPoint
*
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawCurve2
(
GpGraphics
*
,
GpPen
*
,
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