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
b762fcc9
Commit
b762fcc9
authored
Apr 10, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Clip the returned DC bounds to the device rectangle.
parent
5917bd39
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
dc.c
dlls/gdi32/dc.c
+4
-0
dc.c
dlls/gdi32/tests/dc.c
+0
-1
No files found.
dlls/gdi32/dc.c
View file @
b762fcc9
...
...
@@ -1318,6 +1318,10 @@ UINT WINAPI GetBoundsRect(HDC hdc, LPRECT rect, UINT flags)
{
*
rect
=
dc
->
BoundsRect
;
ret
=
is_rect_empty
(
rect
)
?
DCB_RESET
:
DCB_SET
;
rect
->
left
=
max
(
rect
->
left
,
0
);
rect
->
top
=
max
(
rect
->
top
,
0
);
rect
->
right
=
min
(
rect
->
right
,
dc
->
vis_rect
.
right
-
dc
->
vis_rect
.
left
);
rect
->
bottom
=
min
(
rect
->
bottom
,
dc
->
vis_rect
.
bottom
-
dc
->
vis_rect
.
top
);
DPtoLP
(
hdc
,
(
POINT
*
)
rect
,
2
);
}
if
(
flags
&
DCB_RESET
)
...
...
dlls/gdi32/tests/dc.c
View file @
b762fcc9
...
...
@@ -930,7 +930,6 @@ static void test_boundsrect(void)
ret
=
GetBoundsRect
(
hdc
,
&
rect
,
0
);
ok
(
ret
==
DCB_SET
,
"GetBoundsRect returned %x
\n
"
,
ret
);
SetRect
(
&
expect
,
6
,
6
,
1
,
1
);
todo_wine
ok
(
EqualRect
(
&
rect
,
&
expect
),
"Got (%d,%d)-(%d,%d)
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
SetBoundsRect
(
hdc
,
NULL
,
DCB_ENABLE
);
LineTo
(
hdc
,
50
,
40
);
...
...
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