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
1ef7793b
Commit
1ef7793b
authored
Aug 01, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipFillPolygon.
parent
bba20a68
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
1 deletion
+42
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+39
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
1ef7793b
...
...
@@ -224,7 +224,7 @@
@ stub GdipFillPieI
@ stub GdipFillPolygon2
@ stub GdipFillPolygon2I
@ st
ub GdipFillPolygon
@ st
dcall GdipFillPolygon(ptr ptr ptr long long)
@ stdcall GdipFillPolygonI(ptr ptr ptr long long)
@ stub GdipFillRectangle
@ stub GdipFillRectangleI
...
...
dlls/gdiplus/graphics.c
View file @
1ef7793b
...
...
@@ -1224,6 +1224,45 @@ GpStatus WINGDIPAPI GdipFillPie(GpGraphics *graphics, GpBrush *brush, REAL x,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipFillPolygon
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
GDIPCONST
GpPointF
*
points
,
INT
count
,
GpFillMode
fillMode
)
{
INT
save_state
;
GpPointF
*
ptf
=
NULL
;
POINT
*
pti
=
NULL
;
GpStatus
retval
=
Ok
;
if
(
!
graphics
||
!
brush
||
!
points
||
!
count
)
return
InvalidParameter
;
ptf
=
GdipAlloc
(
count
*
sizeof
(
GpPointF
));
pti
=
GdipAlloc
(
count
*
sizeof
(
POINT
));
if
(
!
ptf
||
!
pti
){
retval
=
OutOfMemory
;
goto
end
;
}
memcpy
(
ptf
,
points
,
count
*
sizeof
(
GpPointF
));
save_state
=
SaveDC
(
graphics
->
hdc
);
EndPath
(
graphics
->
hdc
);
SelectObject
(
graphics
->
hdc
,
brush
->
gdibrush
);
SelectObject
(
graphics
->
hdc
,
GetStockObject
(
NULL_PEN
));
SetPolyFillMode
(
graphics
->
hdc
,
(
fillMode
==
FillModeAlternate
?
ALTERNATE
:
WINDING
));
transform_and_round_points
(
graphics
,
pti
,
ptf
,
count
);
Polygon
(
graphics
->
hdc
,
pti
,
count
);
RestoreDC
(
graphics
->
hdc
,
save_state
);
end:
GdipFree
(
ptf
);
GdipFree
(
pti
);
return
retval
;
}
GpStatus
WINGDIPAPI
GdipFillPolygonI
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
GDIPCONST
GpPoint
*
points
,
INT
count
,
GpFillMode
fillMode
)
{
...
...
include/gdiplusflat.h
View file @
1ef7793b
...
...
@@ -102,6 +102,8 @@ GpStatus WINGDIPAPI GdipClosePathFigure(GpPath*);
GpStatus
WINGDIPAPI
GdipClosePathFigures
(
GpPath
*
);
GpStatus
WINGDIPAPI
GdipCreatePath
(
GpFillMode
,
GpPath
**
);
GpStatus
WINGDIPAPI
GdipDeletePath
(
GpPath
*
);
GpStatus
WINGDIPAPI
GdipFillPolygon
(
GpGraphics
*
,
GpBrush
*
,
GDIPCONST
GpPointF
*
,
INT
,
GpFillMode
);
GpStatus
WINGDIPAPI
GdipGetPathFillMode
(
GpPath
*
,
GpFillMode
*
);
GpStatus
WINGDIPAPI
GdipGetPathPoints
(
GpPath
*
,
GpPointF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipGetPathTypes
(
GpPath
*
,
BYTE
*
,
INT
);
...
...
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