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
8b776029
Commit
8b776029
authored
Apr 17, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Fix a test that can fail on multi-monitor setups.
parent
a9b78672
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
dc.c
dlls/gdi32/tests/dc.c
+9
-5
No files found.
dlls/gdi32/tests/dc.c
View file @
8b776029
...
...
@@ -403,11 +403,15 @@ static void test_device_caps( HDC hdc, HDC ref_dc, const char *descr )
}
type
=
GetClipBox
(
ref_dc
,
&
rect
);
ok
(
type
==
SIMPLEREGION
,
"GetClipBox returned %d on %s
\n
"
,
type
,
descr
);
ok
(
rect
.
left
==
0
&&
rect
.
top
==
0
&&
rect
.
right
==
GetDeviceCaps
(
ref_dc
,
DESKTOPHORZRES
)
&&
rect
.
bottom
==
GetDeviceCaps
(
ref_dc
,
DESKTOPVERTRES
),
"GetClipBox returned %d,%d,%d,%d on %s
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
,
descr
);
if
(
type
!=
COMPLEXREGION
)
/* region can be complex on multi-monitor setups */
{
ok
(
type
==
SIMPLEREGION
,
"GetClipBox returned %d on %s
\n
"
,
type
,
descr
);
ok
(
rect
.
left
==
0
&&
rect
.
top
==
0
&&
rect
.
right
==
GetDeviceCaps
(
ref_dc
,
DESKTOPHORZRES
)
&&
rect
.
bottom
==
GetDeviceCaps
(
ref_dc
,
DESKTOPVERTRES
),
"GetClipBox returned %d,%d,%d,%d on %s
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
,
descr
);
}
SetBoundsRect
(
ref_dc
,
NULL
,
DCB_RESET
|
DCB_ACCUMULATE
);
SetMapMode
(
ref_dc
,
MM_TEXT
);
...
...
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