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
a8740a46
Commit
a8740a46
authored
Oct 11, 2010
by
David Adam
Committed by
Alexandre Julliard
Oct 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/test: Add more combination tests for SetCooperativeLevels.
parent
90ba8ceb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
ddrawmodes.c
dlls/ddraw/tests/ddrawmodes.c
+30
-1
No files found.
dlls/ddraw/tests/ddrawmodes.c
View file @
a8740a46
...
...
@@ -558,7 +558,36 @@ static void testcooperativelevels_normal(void)
surfacedesc
.
ddsCaps
.
dwCaps
=
DDSCAPS_PRIMARYSURFACE
|
DDSCAPS_COMPLEX
|
DDSCAPS_FLIP
;
/* Do some tests with DDSCL_NORMAL mode */
/* Fullscreen mode + normal mode + exclusive mode */
rc
=
IDirectDraw_SetCooperativeLevel
(
lpDD
,
hwnd
,
DDSCL_FULLSCREEN
|
DDSCL_EXCLUSIVE
|
DDSCL_NORMAL
);
todo_wine
ok
(
rc
==
DD_OK
,
"SetCooperativeLevel(DDSCL_FULLSCREEN | DDSCL_EXCLUSIVE | DDSCL_NORMAL) returned: %x
\n
"
,
rc
);
/* Try creating a double buffered primary in fullscreen + exclusive + normal mode */
rc
=
IDirectDraw_CreateSurface
(
lpDD
,
&
surfacedesc
,
&
surface
,
NULL
);
if
(
rc
==
DDERR_UNSUPPORTEDMODE
)
skip
(
"Unsupported mode
\n
"
);
else
{
todo_wine
ok
(
rc
==
DD_OK
,
"IDirectDraw_CreateSurface returned %08x
\n
"
,
rc
);
todo_wine
ok
(
surface
!=
NULL
,
"Returned NULL surface pointer
\n
"
);
}
if
(
surface
&&
surface
!=
(
IDirectDrawSurface
*
)
0xdeadbeef
)
IDirectDrawSurface_Release
(
surface
);
/* Exclusive mode + normal mode */
rc
=
IDirectDraw_SetCooperativeLevel
(
lpDD
,
hwnd
,
DDSCL_EXCLUSIVE
|
DDSCL_NORMAL
);
ok
(
rc
==
DDERR_INVALIDPARAMS
,
"SetCooperativeLevel(DDSCL_EXCLUSIVE | DDSCL_NORMAL) returned: %x
\n
"
,
rc
);
/* Fullscreen mode + normal mode */
rc
=
IDirectDraw_SetCooperativeLevel
(
lpDD
,
hwnd
,
DDSCL_FULLSCREEN
|
DDSCL_NORMAL
);
todo_wine
ok
(
rc
==
DD_OK
,
"SetCooperativeLevel(DDSCL_FULLSCREEN | DDSCL_NORMAL) returned: %x
\n
"
,
rc
);
/* Try creating a double buffered primary in fullscreen + normal mode */
rc
=
IDirectDraw_CreateSurface
(
lpDD
,
&
surfacedesc
,
&
surface
,
NULL
);
if
(
rc
==
DDERR_UNSUPPORTEDMODE
)
skip
(
"Unsupported mode
\n
"
);
else
{
ok
(
rc
==
DDERR_NOEXCLUSIVEMODE
,
"IDirectDraw_CreateSurface returned %08x
\n
"
,
rc
);
ok
(
surface
==
NULL
,
"Returned surface pointer is %p
\n
"
,
surface
);
}
if
(
surface
&&
surface
!=
(
IDirectDrawSurface
*
)
0xdeadbeef
)
IDirectDrawSurface_Release
(
surface
);
/* Normal mode */
rc
=
IDirectDraw_SetCooperativeLevel
(
lpDD
,
hwnd
,
DDSCL_NORMAL
);
ok
(
rc
==
DD_OK
,
"SetCooperativeLevel(DDSCL_NORMAL) returned: %x
\n
"
,
rc
);
...
...
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