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
82780d6b
Commit
82780d6b
authored
Mar 11, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Skip the overlay tests in test_block_formats_creation() if overlays are not supported.
parent
cf5023bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
ddraw4.c
dlls/ddraw/tests/ddraw4.c
+10
-1
ddraw7.c
dlls/ddraw/tests/ddraw7.c
+10
-1
No files found.
dlls/ddraw/tests/ddraw4.c
View file @
82780d6b
...
...
@@ -4043,6 +4043,8 @@ static void test_block_formats_creation(void)
DWORD
supported_fmts
=
0
,
supported_overlay_fmts
=
0
;
DWORD
num_fourcc_codes
=
0
,
*
fourcc_codes
;
DDSURFACEDESC2
ddsd
;
DDCAPS
hal_caps
;
static
const
struct
{
DWORD
fourcc
;
...
...
@@ -4132,12 +4134,19 @@ static void test_block_formats_creation(void)
}
HeapFree
(
GetProcessHeap
(),
0
,
fourcc_codes
);
memset
(
&
hal_caps
,
0
,
sizeof
(
hal_caps
));
hal_caps
.
dwSize
=
sizeof
(
hal_caps
);
hr
=
IDirectDraw4_GetCaps
(
ddraw
,
&
hal_caps
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get caps, hr %#x.
\n
"
,
hr
);
for
(
i
=
0
;
i
<
sizeof
(
formats
)
/
sizeof
(
*
formats
);
i
++
)
{
for
(
j
=
0
;
j
<
sizeof
(
types
)
/
sizeof
(
*
types
);
j
++
)
{
BOOL
support
;
if
(
formats
[
i
].
overlay
!=
types
[
j
].
overlay
)
if
(
formats
[
i
].
overlay
!=
types
[
j
].
overlay
||
(
types
[
j
].
overlay
&&
!
(
hal_caps
.
dwCaps
&
DDCAPS_OVERLAY
)))
continue
;
if
(
formats
[
i
].
overlay
)
...
...
dlls/ddraw/tests/ddraw7.c
View file @
82780d6b
...
...
@@ -3850,6 +3850,8 @@ static void test_block_formats_creation(void)
DWORD
supported_fmts
=
0
,
supported_overlay_fmts
=
0
;
DWORD
num_fourcc_codes
=
0
,
*
fourcc_codes
;
DDSURFACEDESC2
ddsd
;
DDCAPS
hal_caps
;
static
const
struct
{
DWORD
fourcc
;
...
...
@@ -3939,12 +3941,19 @@ static void test_block_formats_creation(void)
}
HeapFree
(
GetProcessHeap
(),
0
,
fourcc_codes
);
memset
(
&
hal_caps
,
0
,
sizeof
(
hal_caps
));
hal_caps
.
dwSize
=
sizeof
(
hal_caps
);
hr
=
IDirectDraw7_GetCaps
(
ddraw
,
&
hal_caps
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get caps, hr %#x.
\n
"
,
hr
);
for
(
i
=
0
;
i
<
sizeof
(
formats
)
/
sizeof
(
*
formats
);
i
++
)
{
for
(
j
=
0
;
j
<
sizeof
(
types
)
/
sizeof
(
*
types
);
j
++
)
{
BOOL
support
;
if
(
formats
[
i
].
overlay
!=
types
[
j
].
overlay
)
if
(
formats
[
i
].
overlay
!=
types
[
j
].
overlay
||
(
types
[
j
].
overlay
&&
!
(
hal_caps
.
dwCaps
&
DDCAPS_OVERLAY
)))
continue
;
if
(
formats
[
i
].
overlay
)
...
...
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