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
39238740
Commit
39238740
authored
Sep 17, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix some test failures on win9x.
parent
b4062882
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
monitor.c
dlls/user32/tests/monitor.c
+11
-8
No files found.
dlls/user32/tests/monitor.c
View file @
39238740
...
...
@@ -123,7 +123,7 @@ static void test_enumdisplaydevices(void)
struct
vid_mode
{
DWORD
w
,
h
,
bpp
,
freq
,
fields
;
LONG
success
;
BOOL
must_succeed
;
};
static
const
struct
vid_mode
vid_modes_test
[]
=
{
...
...
@@ -131,11 +131,11 @@ static const struct vid_mode vid_modes_test[] = {
{
640
,
480
,
0
,
0
,
DM_PELSWIDTH
|
DM_PELSHEIGHT
|
DM_DISPLAYFREQUENCY
,
1
},
{
640
,
480
,
0
,
0
,
DM_PELSWIDTH
|
DM_PELSHEIGHT
|
DM_BITSPERPEL
,
1
},
{
640
,
480
,
0
,
0
,
DM_PELSWIDTH
|
DM_PELSHEIGHT
,
1
},
{
640
,
480
,
0
,
0
,
DM_BITSPERPEL
,
1
},
{
640
,
480
,
0
,
0
,
DM_DISPLAYFREQUENCY
,
1
},
{
640
,
480
,
0
,
0
,
DM_BITSPERPEL
,
0
},
{
640
,
480
,
0
,
0
,
DM_DISPLAYFREQUENCY
,
0
},
{
0
,
0
,
0
,
0
,
DM_PELSWIDTH
,
1
},
{
0
,
0
,
0
,
0
,
DM_PELSHEIGHT
,
1
},
{
0
,
0
,
0
,
0
,
DM_PELSWIDTH
,
0
},
{
0
,
0
,
0
,
0
,
DM_PELSHEIGHT
,
0
},
{
640
,
480
,
0
,
0
,
DM_PELSWIDTH
,
0
},
{
640
,
480
,
0
,
0
,
DM_PELSHEIGHT
,
0
},
...
...
@@ -237,9 +237,9 @@ static void test_ChangeDisplaySettingsEx(void)
dm
.
dmDisplayFrequency
=
vid_modes_test
[
i
].
freq
;
dm
.
dmFields
=
vid_modes_test
[
i
].
fields
;
res
=
pChangeDisplaySettingsExA
(
NULL
,
&
dm
,
NULL
,
CDS_TEST
,
NULL
);
ok
(
vid_modes_test
[
i
].
success
?
ok
(
vid_modes_test
[
i
].
must_succeed
?
(
res
==
DISP_CHANGE_SUCCESSFUL
)
:
(
res
==
DISP_CHANGE_BADMODE
||
res
==
DISP_CHANGE_BADPARAM
),
(
res
==
DISP_CHANGE_
SUCCESSFUL
||
res
==
DISP_CHANGE_
BADMODE
||
res
==
DISP_CHANGE_BADPARAM
),
"Unexpected ChangeDisplaySettingsEx() return code for resolution[%d]: %d
\n
"
,
i
,
res
);
if
(
res
==
DISP_CHANGE_SUCCESSFUL
)
...
...
@@ -266,7 +266,10 @@ static void test_ChangeDisplaySettingsEx(void)
SetRect
(
&
r1
,
virt
.
left
-
10
,
virt
.
top
-
10
,
virt
.
right
+
20
,
virt
.
bottom
+
20
);
ok
(
ClipCursor
(
&
r1
),
"ClipCursor() failed
\n
"
);
ok
(
GetClipCursor
(
&
r
),
"GetClipCursor() failed
\n
"
);
ok
(
EqualRect
(
&
r
,
&
virt
),
"Invalid clip rect: (%d %d) x (%d %d)
\n
"
,
r
.
left
,
r
.
top
,
r
.
right
,
r
.
bottom
);
ok
(
EqualRect
(
&
r
,
&
virt
)
||
broken
(
EqualRect
(
&
r
,
&
r1
))
/* win9x */
,
"Invalid clip rect: (%d %d) x (%d %d)
\n
"
,
r
.
left
,
r
.
top
,
r
.
right
,
r
.
bottom
);
ClipCursor
(
&
virt
);
}
}
res
=
pChangeDisplaySettingsExA
(
NULL
,
NULL
,
NULL
,
CDS_RESET
,
NULL
);
...
...
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