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
4a44100a
Commit
4a44100a
authored
Aug 22, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipFillClosedCurve2[I].
parent
3ad8b7ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
2 deletions
+63
-2
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
graphics.c
dlls/gdiplus/graphics.c
+56
-0
gdiplusflat.h
include/gdiplusflat.h
+5
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
4a44100a
...
...
@@ -213,8 +213,8 @@
@ stub GdipEnumerateMetafileSrcRectDestPointsI
@ stub GdipEnumerateMetafileSrcRectDestRect
@ stub GdipEnumerateMetafileSrcRectDestRectI
@ st
ub GdipFillClosedCurve2
@ st
ub GdipFillClosedCurve2I
@ st
dcall GdipFillClosedCurve2(ptr ptr ptr long long)
@ st
dcall GdipFillClosedCurve2I(ptr ptr ptr long long)
@ stub GdipFillClosedCurve
@ stub GdipFillClosedCurveI
@ stdcall GdipFillEllipse(ptr ptr long long long long)
...
...
dlls/gdiplus/graphics.c
View file @
4a44100a
...
...
@@ -1801,6 +1801,62 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipFillClosedCurve2
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
GDIPCONST
GpPointF
*
points
,
INT
count
,
REAL
tension
,
GpFillMode
fill
)
{
GpPath
*
path
;
GpStatus
stat
;
if
(
!
graphics
||
!
brush
||
!
points
)
return
InvalidParameter
;
stat
=
GdipCreatePath
(
fill
,
&
path
);
if
(
stat
!=
Ok
)
return
stat
;
stat
=
GdipAddPathClosedCurve2
(
path
,
points
,
count
,
tension
);
if
(
stat
!=
Ok
){
GdipDeletePath
(
path
);
return
stat
;
}
stat
=
GdipFillPath
(
graphics
,
brush
,
path
);
if
(
stat
!=
Ok
){
GdipDeletePath
(
path
);
return
stat
;
}
GdipDeletePath
(
path
);
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipFillClosedCurve2I
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
GDIPCONST
GpPoint
*
points
,
INT
count
,
REAL
tension
,
GpFillMode
fill
)
{
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
=
GdipFillClosedCurve2
(
graphics
,
brush
,
ptf
,
count
,
tension
,
fill
);
GdipFree
(
ptf
);
return
stat
;
}
GpStatus
WINGDIPAPI
GdipFillEllipse
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
REAL
x
,
REAL
y
,
REAL
width
,
REAL
height
)
{
...
...
include/gdiplusflat.h
View file @
4a44100a
...
...
@@ -132,6 +132,11 @@ GpStatus WINGDIPAPI GdipDrawRectanglesI(GpGraphics*,GpPen*,GDIPCONST GpRect*,INT
GpStatus
WINGDIPAPI
GdipDrawString
(
GpGraphics
*
,
GDIPCONST
WCHAR
*
,
INT
,
GDIPCONST
GpFont
*
,
GDIPCONST
RectF
*
,
GDIPCONST
GpStringFormat
*
,
GDIPCONST
GpBrush
*
);
GpStatus
WINGDIPAPI
GdipFillClosedCurve2
(
GpGraphics
*
,
GpBrush
*
,
GDIPCONST
GpPointF
*
,
INT
,
REAL
,
GpFillMode
);
GpStatus
WINGDIPAPI
GdipFillClosedCurve2I
(
GpGraphics
*
,
GpBrush
*
,
GDIPCONST
GpPoint
*
,
INT
,
REAL
,
GpFillMode
);
GpStatus
WINGDIPAPI
GdipFillEllipse
(
GpGraphics
*
,
GpBrush
*
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipFillEllipseI
(
GpGraphics
*
,
GpBrush
*
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipFillPath
(
GpGraphics
*
,
GpBrush
*
,
GpPath
*
);
...
...
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