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
1223569d
Commit
1223569d
authored
Feb 19, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Reimplement GdipDrawRectangle using GdipDrawPath.
parent
981223a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
25 deletions
+9
-25
graphics.c
dlls/gdiplus/graphics.c
+9
-25
No files found.
dlls/gdiplus/graphics.c
View file @
1223569d
...
...
@@ -3398,9 +3398,8 @@ GpStatus WINGDIPAPI GdipDrawPieI(GpGraphics *graphics, GpPen *pen, INT x,
GpStatus
WINGDIPAPI
GdipDrawRectangle
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
REAL
x
,
REAL
y
,
REAL
width
,
REAL
height
)
{
INT
save_state
;
GpPointF
ptf
[
4
];
POINT
pti
[
4
];
GpStatus
status
;
GpPath
*
path
;
TRACE
(
"(%p, %p, %.2f, %.2f, %.2f, %.2f)
\n
"
,
graphics
,
pen
,
x
,
y
,
width
,
height
);
...
...
@@ -3410,30 +3409,15 @@ GpStatus WINGDIPAPI GdipDrawRectangle(GpGraphics *graphics, GpPen *pen, REAL x,
if
(
graphics
->
busy
)
return
ObjectBusy
;
if
(
!
graphics
->
hdc
)
{
FIXME
(
"graphics object has no HDC
\n
"
);
return
Ok
;
}
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
=
prepare_dc
(
graphics
,
pen
);
SelectObject
(
graphics
->
hdc
,
GetStockObject
(
NULL_BRUSH
));
transform_and_round_points
(
graphics
,
pti
,
ptf
,
4
);
Polygon
(
graphics
->
hdc
,
pti
,
4
);
status
=
GdipCreatePath
(
FillModeAlternate
,
&
path
);
if
(
status
!=
Ok
)
return
status
;
restore_dc
(
graphics
,
save_state
);
status
=
GdipAddPathRectangle
(
path
,
x
,
y
,
width
,
height
);
if
(
status
==
Ok
)
status
=
GdipDrawPath
(
graphics
,
pen
,
path
);
return
Ok
;
GdipDeletePath
(
path
);
return
status
;
}
GpStatus
WINGDIPAPI
GdipDrawRectangleI
(
GpGraphics
*
graphics
,
GpPen
*
pen
,
INT
x
,
...
...
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