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
caf15dd7
Commit
caf15dd7
authored
Apr 20, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Take into account multi-monitor setups in the clip region tests.
parent
f5a5cc06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
clipping.c
dlls/gdi32/tests/clipping.c
+5
-3
No files found.
dlls/gdi32/tests/clipping.c
View file @
caf15dd7
...
...
@@ -333,7 +333,7 @@ static void test_GetClipRgn(void)
/* Try unsetting and then query the clipping region. */
ret
=
SelectClipRgn
(
hdc
,
NULL
);
ok
(
ret
==
SIMPLEREGION
,
ok
(
ret
==
SIMPLEREGION
||
(
ret
==
COMPLEXREGION
&&
GetSystemMetrics
(
SM_CMONITORS
)
>
1
)
,
"Expected SelectClipRgn to return SIMPLEREGION, got %d
\n
"
,
ret
);
ret
=
GetClipRgn
(
hdc
,
NULL
);
...
...
@@ -434,7 +434,8 @@ static void test_window_dc_clipping(void)
ok
(
ret
==
0
,
"expected 0, got %d
\n
"
,
ret
);
ret
=
ExtSelectClipRgn
(
hdc
,
hrgn_empty
,
RGN_DIFF
);
ok
(
ret
==
SIMPLEREGION
,
"expected SIMPLEREGION, got %d
\n
"
,
ret
);
ok
(
ret
==
SIMPLEREGION
||
(
ret
==
COMPLEXREGION
&&
GetSystemMetrics
(
SM_CMONITORS
)
>
1
),
"expected SIMPLEREGION, got %d
\n
"
,
ret
);
ret
=
GetClipRgn
(
hdc
,
hrgn
);
ok
(
ret
==
1
,
"expected 1, got %d
\n
"
,
ret
);
...
...
@@ -446,7 +447,8 @@ static void test_window_dc_clipping(void)
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
ret
=
ExtSelectClipRgn
(
hdc
,
0
,
RGN_COPY
);
ok
(
ret
==
SIMPLEREGION
,
"expected SIMPLEREGION, got %d
\n
"
,
ret
);
ok
(
ret
==
SIMPLEREGION
||
(
ret
==
COMPLEXREGION
&&
GetSystemMetrics
(
SM_CMONITORS
)
>
1
),
"expected SIMPLEREGION, got %d
\n
"
,
ret
);
ret
=
GetClipRgn
(
hdc
,
hrgn
);
ok
(
ret
==
0
,
"expected 0, got %d
\n
"
,
ret
);
...
...
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