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
b66c0a00
Commit
b66c0a00
authored
Aug 08, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Aug 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added GdipFillRectangle.
parent
b5d7af54
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
1 deletion
+35
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+33
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
b66c0a00
...
...
@@ -226,7 +226,7 @@
@ stub GdipFillPolygon2I
@ stdcall GdipFillPolygon(ptr ptr ptr long long)
@ stdcall GdipFillPolygonI(ptr ptr ptr long long)
@ st
ub GdipFillRectangle
@ st
dcall GdipFillRectangle(ptr ptr long long long long)
@ stdcall GdipFillRectangleI(ptr ptr long long long long)
@ stub GdipFillRectangles
@ stub GdipFillRectanglesI
...
...
dlls/gdiplus/graphics.c
View file @
b66c0a00
...
...
@@ -1336,6 +1336,39 @@ end:
return
retval
;
}
GpStatus
WINGDIPAPI
GdipFillRectangle
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
REAL
x
,
REAL
y
,
REAL
width
,
REAL
height
)
{
INT
save_state
;
GpPointF
ptf
[
4
];
POINT
pti
[
4
];
if
(
!
graphics
||
!
brush
)
return
InvalidParameter
;
ptf
[
0
].
X
=
x
;
ptf
[
0
].
Y
=
y
;
ptf
[
1
].
X
=
x
+
width
;
ptf
[
1
].
Y
=
y
;
ptf
[
2
].
X
=
x
+
width
;
ptf
[
2
].
Y
=
y
+
height
;
ptf
[
3
].
X
=
x
;
ptf
[
3
].
Y
=
y
+
height
;
save_state
=
SaveDC
(
graphics
->
hdc
);
EndPath
(
graphics
->
hdc
);
SelectObject
(
graphics
->
hdc
,
brush
->
gdibrush
);
SelectObject
(
graphics
->
hdc
,
GetStockObject
(
NULL_PEN
));
transform_and_round_points
(
graphics
,
pti
,
ptf
,
4
);
Polygon
(
graphics
->
hdc
,
pti
,
4
);
RestoreDC
(
graphics
->
hdc
,
save_state
);
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipFillRectangleI
(
GpGraphics
*
graphics
,
GpBrush
*
brush
,
INT
x
,
INT
y
,
INT
width
,
INT
height
)
{
...
...
include/gdiplusflat.h
View file @
b66c0a00
...
...
@@ -76,6 +76,7 @@ GpStatus WINGDIPAPI GdipFillPath(GpGraphics*,GpBrush*,GpPath*);
GpStatus
WINGDIPAPI
GdipFillPie
(
GpGraphics
*
,
GpBrush
*
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipFillPolygonI
(
GpGraphics
*
,
GpBrush
*
,
GDIPCONST
GpPoint
*
,
INT
,
GpFillMode
);
GpStatus
WINGDIPAPI
GdipFillRectangle
(
GpGraphics
*
,
GpBrush
*
,
REAL
,
REAL
,
REAL
,
REAL
);
GpStatus
WINGDIPAPI
GdipFillRectangleI
(
GpGraphics
*
,
GpBrush
*
,
INT
,
INT
,
INT
,
INT
);
GpStatus
WINGDIPAPI
GdipGetCompositingQuality
(
GpGraphics
*
,
CompositingQuality
*
);
GpStatus
WINGDIPAPI
GdipGetInterpolationMode
(
GpGraphics
*
,
InterpolationMode
*
);
...
...
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