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
4bec383d
Commit
4bec383d
authored
Jan 25, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix various failures in the monitor test.
parent
cbe6e717
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
monitor.c
dlls/user32/tests/monitor.c
+4
-3
No files found.
dlls/user32/tests/monitor.c
View file @
4bec383d
...
...
@@ -240,7 +240,7 @@ static void test_ChangeDisplaySettingsEx(void)
dm
.
dmFields
=
vid_modes_test
[
i
].
fields
;
res
=
pChangeDisplaySettingsExA
(
NULL
,
&
dm
,
NULL
,
CDS_TEST
,
NULL
);
ok
(
vid_modes_test
[
i
].
must_succeed
?
(
res
==
DISP_CHANGE_SUCCESSFUL
)
:
(
res
==
DISP_CHANGE_SUCCESSFUL
||
res
==
DISP_CHANGE_RESTART
)
:
(
res
==
DISP_CHANGE_SUCCESSFUL
||
res
==
DISP_CHANGE_BADMODE
||
res
==
DISP_CHANGE_BADPARAM
),
"Unexpected ChangeDisplaySettingsEx() return code for resolution[%d]: %d
\n
"
,
i
,
res
);
...
...
@@ -257,7 +257,7 @@ static void test_ChangeDisplaySettingsEx(void)
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
(
ClipCursor
(
NULL
),
"ClipCursor() failed
\n
"
)
;
if
(
!
ClipCursor
(
NULL
))
continue
;
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
);
...
...
@@ -368,7 +368,8 @@ static void test_work_area(void)
wp
.
rcNormalPosition
.
left
,
wp
.
rcNormalPosition
.
top
,
wp
.
rcNormalPosition
.
right
,
wp
.
rcNormalPosition
.
bottom
);
OffsetRect
(
&
wp
.
rcNormalPosition
,
rc_work
.
left
,
rc_work
.
top
);
if
(
!
EqualRect
(
&
mi
.
rcMonitor
,
&
mi
.
rcWork
))
/* FIXME: remove once Wine is fixed */
if
(
mi
.
rcMonitor
.
left
!=
mi
.
rcWork
.
left
||
mi
.
rcMonitor
.
top
!=
mi
.
rcWork
.
top
)
/* FIXME: remove once Wine is fixed */
todo_wine
ok
(
EqualRect
(
&
rc_normal
,
&
wp
.
rcNormalPosition
),
"normal pos is different
\n
"
);
else
ok
(
EqualRect
(
&
rc_normal
,
&
wp
.
rcNormalPosition
),
"normal pos is different
\n
"
);
...
...
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