Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1fb67788
Commit
1fb67788
authored
Jul 28, 2010
by
Johan Gill
Committed by
Alexandre Julliard
Jul 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Added a todo_wine test for SetCooperativeLevel.
parent
7833ca6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
ddrawmodes.c
dlls/ddraw/tests/ddrawmodes.c
+10
-0
No files found.
dlls/ddraw/tests/ddrawmodes.c
View file @
1fb67788
...
...
@@ -645,10 +645,16 @@ static void testcooperativelevels_normal(void)
static
void
testcooperativelevels_exclusive
(
void
)
{
BOOL
success
;
HRESULT
rc
;
RECT
window_rect
;
/* Do some tests with DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN mode */
/* First, resize the window so it is not the same size as any screen */
success
=
SetWindowPos
(
hwnd
,
0
,
0
,
0
,
281
,
92
,
0
);
ok
(
success
,
"SetWindowPos failed
\n
"
);
/* Try to set exclusive mode only */
rc
=
IDirectDraw_SetCooperativeLevel
(
lpDD
,
hwnd
,
DDSCL_EXCLUSIVE
);
...
...
@@ -663,6 +669,10 @@ static void testcooperativelevels_exclusive(void)
rc
=
IDirectDraw_SetCooperativeLevel
(
lpDD
,
hwnd
,
DDSCL_FULLSCREEN
|
DDSCL_EXCLUSIVE
);
ok
(
rc
==
DD_OK
,
"SetCooperativeLevel(DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN) returned: %x
\n
"
,
rc
);
GetClientRect
(
hwnd
,
&
window_rect
);
/* rect_before_create is assumed to hold the screen rect */
rc
=
EqualRect
(
&
rect_before_create
,
&
window_rect
);
todo_wine
ok
(
rc
!=
0
,
"Fullscreen window has wrong size
\n
"
);
/* Set the focus window. Should fail */
rc
=
IDirectDraw_SetCooperativeLevel
(
lpDD
,
...
...
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