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
5e772480
Commit
5e772480
authored
Feb 12, 2014
by
Francois Gouget
Committed by
Alexandre Julliard
Feb 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Skip the primary palette tests if the 640x480x8 mode is not supported.
parent
6ad441cd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
ddraw1.c
dlls/ddraw/tests/ddraw1.c
+6
-0
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+6
-0
ddraw4.c
dlls/ddraw/tests/ddraw4.c
+6
-0
No files found.
dlls/ddraw/tests/ddraw1.c
View file @
5e772480
...
...
@@ -4078,6 +4078,12 @@ static void test_primary_palette(void)
window
=
CreateWindowA
(
"static"
,
"ddraw_test"
,
WS_OVERLAPPEDWINDOW
,
0
,
0
,
640
,
480
,
0
,
0
,
0
,
0
);
hr
=
IDirectDraw_SetDisplayMode
(
ddraw
,
640
,
480
,
8
);
if
(
hr
==
E_NOTIMPL
)
{
win_skip
(
"8bpp display mode is not supported
\n
"
);
DestroyWindow
(
window
);
return
;
}
ok
(
SUCCEEDED
(
hr
),
"Failed to set display mode, hr %#x.
\n
"
,
hr
);
hr
=
IDirectDraw_SetCooperativeLevel
(
ddraw
,
window
,
DDSCL_EXCLUSIVE
|
DDSCL_FULLSCREEN
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set cooperative level, hr %#x.
\n
"
,
hr
);
...
...
dlls/ddraw/tests/ddraw2.c
View file @
5e772480
...
...
@@ -5175,6 +5175,12 @@ static void test_primary_palette(void)
window
=
CreateWindowA
(
"static"
,
"ddraw_test"
,
WS_OVERLAPPEDWINDOW
,
0
,
0
,
640
,
480
,
0
,
0
,
0
,
0
);
hr
=
IDirectDraw2_SetDisplayMode
(
ddraw
,
640
,
480
,
8
,
0
,
0
);
if
(
hr
==
E_NOTIMPL
)
{
win_skip
(
"8bpp display mode is not supported
\n
"
);
DestroyWindow
(
window
);
return
;
}
ok
(
SUCCEEDED
(
hr
),
"Failed to set display mode, hr %#x.
\n
"
,
hr
);
hr
=
IDirectDraw2_SetCooperativeLevel
(
ddraw
,
window
,
DDSCL_EXCLUSIVE
|
DDSCL_FULLSCREEN
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set cooperative level, hr %#x.
\n
"
,
hr
);
...
...
dlls/ddraw/tests/ddraw4.c
View file @
5e772480
...
...
@@ -5772,6 +5772,12 @@ static void test_primary_palette(void)
0
,
0
,
640
,
480
,
0
,
0
,
0
,
0
);
hr
=
IDirectDraw4_SetDisplayMode
(
ddraw
,
640
,
480
,
8
,
0
,
0
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set display mode, hr %#x.
\n
"
,
hr
);
if
(
hr
==
E_NOTIMPL
)
{
win_skip
(
"8bpp display mode is not supported
\n
"
);
DestroyWindow
(
window
);
return
;
}
hr
=
IDirectDraw4_SetCooperativeLevel
(
ddraw
,
window
,
DDSCL_EXCLUSIVE
|
DDSCL_FULLSCREEN
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set cooperative level, hr %#x.
\n
"
,
hr
);
...
...
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