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
af0ae9df
Commit
af0ae9df
authored
Sep 15, 2020
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Sep 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix a test failure.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ef88a70f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
monitor.c
dlls/user32/tests/monitor.c
+7
-5
No files found.
dlls/user32/tests/monitor.c
View file @
af0ae9df
...
...
@@ -702,16 +702,18 @@ static void test_ChangeDisplaySettingsEx(void)
dm2
.
dmSize
=
sizeof
(
dm2
);
for
(
mode
=
0
;
EnumDisplaySettingsA
(
devices
[
device
].
name
,
mode
,
&
dm2
);
++
mode
)
{
if
(
dm2
.
dmPelsWidth
!=
dm
.
dmPelsWidth
&&
dm2
.
dmPelsHeight
!=
dm
.
dmPelsHeight
)
/* Use the same color depth because the win2008 TestBots are unable to change it */
if
(
dm2
.
dmPelsWidth
!=
dm
.
dmPelsWidth
&&
dm2
.
dmPelsHeight
!=
dm
.
dmPelsHeight
&&
dm2
.
dmBitsPerPel
==
dm
.
dmBitsPerPel
)
break
;
}
ok
(
dm2
.
dmPelsWidth
!=
dm
.
dmPelsWidth
&&
dm2
.
dmPelsHeight
!=
dm
.
dmPelsHeight
,
"Failed to find a different mode.
\n
"
);
ok
(
dm2
.
dmPelsWidth
!=
dm
.
dmPelsWidth
&&
dm2
.
dmPelsHeight
!=
dm
.
dmPelsHeight
&&
dm2
.
dmBitsPerPel
==
dm
.
dmBitsPerPel
,
"Failed to find a different mode.
\n
"
);
/* Test normal operation */
dm
=
dm2
;
dm
.
dmFields
|=
DM_POSITION
;
dm
.
dmPosition
=
position
;
dm
.
dmPelsWidth
=
dm2
.
dmPelsWidth
;
dm
.
dmPelsHeight
=
dm2
.
dmPelsHeight
;
dm
.
dmDisplayFrequency
=
dm2
.
dmDisplayFrequency
;
res
=
ChangeDisplaySettingsExA
(
devices
[
device
].
name
,
&
dm
,
NULL
,
CDS_UPDATEREGISTRY
|
CDS_NORESET
,
NULL
);
ok
(
res
==
DISP_CHANGE_SUCCESSFUL
||
broken
(
res
==
DISP_CHANGE_FAILED
),
/* win8 TestBot */
...
...
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