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
4b9bfbe7
Commit
4b9bfbe7
authored
Jun 12, 2007
by
Evan Stade
Committed by
Alexandre Julliard
Jun 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implemented GdipDrawRectangleI.
parent
2689b18e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletion
+33
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
graphics.c
dlls/gdiplus/graphics.c
+32
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
4b9bfbe7
...
...
@@ -184,7 +184,7 @@
@ stub GdipDrawPolygon
@ stub GdipDrawPolygonI
@ stub GdipDrawRectangle
@ st
ub GdipDrawRectangleI
@ st
dcall GdipDrawRectangleI(ptr ptr long long long long)
@ stub GdipDrawRectangles
@ stub GdipDrawRectanglesI
@ stub GdipDrawString
...
...
dlls/gdiplus/graphics.c
View file @
4b9bfbe7
...
...
@@ -81,3 +81,35 @@ GpStatus WINGDIPAPI GdipDrawLineI(GpGraphics *graphics, GpPen *pen, INT x1,
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipDrawRectangleI
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
INT
x
,
INT
y
,
INT
width
,
INT
height
)
{
LOGBRUSH
lb
;
HPEN
hpen
;
HGDIOBJ
old_obj
;
if
(
!
pen
||
!
graphics
)
return
InvalidParameter
;
lb
.
lbStyle
=
BS_SOLID
;
lb
.
lbColor
=
pen
->
color
;
lb
.
lbHatch
=
0
;
hpen
=
ExtCreatePen
(
PS_GEOMETRIC
|
PS_ENDCAP_SQUARE
,
(
INT
)
pen
->
width
,
&
lb
,
0
,
NULL
);
old_obj
=
SelectObject
(
graphics
->
hdc
,
hpen
);
/* assume pen aligment centered */
MoveToEx
(
graphics
->
hdc
,
x
,
y
,
NULL
);
LineTo
(
graphics
->
hdc
,
x
+
width
,
y
);
LineTo
(
graphics
->
hdc
,
x
+
width
,
y
+
height
);
LineTo
(
graphics
->
hdc
,
x
,
y
+
height
);
LineTo
(
graphics
->
hdc
,
x
,
y
);
SelectObject
(
graphics
->
hdc
,
old_obj
);
DeleteObject
(
hpen
);
return
Ok
;
}
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