Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
94ffc49e
Commit
94ffc49e
authored
Jan 05, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Draw rectangles in the order specified by the current arc direction.
parent
83507c8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
graphics.c
dlls/gdi32/dibdrv/graphics.c
+16
-5
No files found.
dlls/gdi32/dibdrv/graphics.c
View file @
94ffc49e
...
...
@@ -674,11 +674,22 @@ BOOL dibdrv_Rectangle( PHYSDEV dev, INT left, INT top, INT right, INT bottom )
rect
.
bottom
--
;
reset_dash_origin
(
pdev
);
/* 4 pts going anti-clockwise starting from top-right */
pts
[
0
].
x
=
pts
[
3
].
x
=
rect
.
right
;
pts
[
0
].
y
=
pts
[
1
].
y
=
rect
.
top
;
pts
[
1
].
x
=
pts
[
2
].
x
=
rect
.
left
;
pts
[
2
].
y
=
pts
[
3
].
y
=
rect
.
bottom
;
if
(
GetArcDirection
(
dev
->
hdc
)
==
AD_CLOCKWISE
)
{
/* 4 pts going clockwise starting from bottom-right */
pts
[
0
].
x
=
pts
[
3
].
x
=
rect
.
right
;
pts
[
0
].
y
=
pts
[
1
].
y
=
rect
.
bottom
;
pts
[
1
].
x
=
pts
[
2
].
x
=
rect
.
left
;
pts
[
2
].
y
=
pts
[
3
].
y
=
rect
.
top
;
}
else
{
/* 4 pts going anti-clockwise starting from top-right */
pts
[
0
].
x
=
pts
[
3
].
x
=
rect
.
right
;
pts
[
0
].
y
=
pts
[
1
].
y
=
rect
.
top
;
pts
[
1
].
x
=
pts
[
2
].
x
=
rect
.
left
;
pts
[
2
].
y
=
pts
[
3
].
y
=
rect
.
bottom
;
}
pdev
->
pen_lines
(
pdev
,
4
,
pts
,
TRUE
,
outline
);
...
...
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