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
4697593e
Commit
4697593e
authored
Apr 24, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipDrawPolygon/GdipDrawPolygonI.
parent
3903ac6e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
2 deletions
+48
-2
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+2
-2
graphics.c
dlls/gdiplus/graphics.c
+44
-0
gdiplusflat.h
include/gdiplusflat.h
+2
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
4697593e
...
...
@@ -192,8 +192,8 @@
@ stdcall GdipDrawPath(ptr ptr ptr)
@ stdcall GdipDrawPie(ptr ptr long long long long long long)
@ stdcall GdipDrawPieI(ptr ptr long long long long long long)
@ st
ub GdipDrawPolygon
@ st
ub GdipDrawPolygonI
@ st
dcall GdipDrawPolygon(ptr ptr ptr long)
@ st
dcall GdipDrawPolygonI(ptr ptr ptr long)
@ stdcall GdipDrawRectangle(ptr ptr long long long long)
@ stdcall GdipDrawRectangleI(ptr ptr long long long long)
@ stdcall GdipDrawRectangles(ptr ptr ptr long)
...
...
dlls/gdiplus/graphics.c
View file @
4697593e
...
...
@@ -2161,3 +2161,47 @@ GpStatus WINGDIPAPI GdipSetMetafileDownLevelRasterizationLimit(GpGraphics *graph
return
NotImplemented
;
}
GpStatus
WINGDIPAPI
GdipDrawPolygon
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
GDIPCONST
GpPointF
*
points
,
INT
count
)
{
INT
save_state
;
POINT
*
pti
;
if
(
!
graphics
||
!
pen
||
count
<=
0
)
return
InvalidParameter
;
pti
=
GdipAlloc
(
sizeof
(
POINT
)
*
count
);
save_state
=
prepare_dc
(
graphics
,
pen
);
SelectObject
(
graphics
->
hdc
,
GetStockObject
(
NULL_BRUSH
));
transform_and_round_points
(
graphics
,
pti
,
(
GpPointF
*
)
points
,
count
);
Polygon
(
graphics
->
hdc
,
pti
,
count
);
restore_dc
(
graphics
,
save_state
);
GdipFree
(
pti
);
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipDrawPolygonI
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
GDIPCONST
GpPoint
*
points
,
INT
count
)
{
GpStatus
ret
;
GpPointF
*
ptf
;
INT
i
;
if
(
count
<=
0
)
return
InvalidParameter
;
ptf
=
GdipAlloc
(
sizeof
(
GpPointF
)
*
count
);
for
(
i
=
0
;
i
<
count
;
i
++
){
ptf
[
i
].
X
=
(
REAL
)
points
[
i
].
X
;
ptf
[
i
].
Y
=
(
REAL
)
points
[
i
].
Y
;
}
ret
=
GdipDrawPolygon
(
graphics
,
pen
,
ptf
,
count
);
GdipFree
(
ptf
);
return
ret
;
}
include/gdiplusflat.h
View file @
4697593e
...
...
@@ -94,6 +94,8 @@ GpStatus WINGDIPAPI GdipDrawLinesI(GpGraphics*,GpPen*,GDIPCONST GpPoint*,INT);
GpStatus
WINGDIPAPI
GdipDrawPath
(
GpGraphics
*
,
GpPen
*
,
GpPath
*
);
GpStatus
WINGDIPAPI
GdipDrawPie
(
GpGraphics
*
,
GpPen
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawPieI
(
GpGraphics
*
,
GpPen
*
,
INT
,
INT
,
INT
,
INT
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawPolygon
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPointF
*
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawPolygonI
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpPoint
*
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawRectangle
(
GpGraphics
*
,
GpPen
*
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipDrawRectangleI
(
GpGraphics
*
,
GpPen
*
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipDrawRectangles
(
GpGraphics
*
,
GpPen
*
,
GDIPCONST
GpRectF
*
,
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