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
0f0d92bf
Commit
0f0d92bf
authored
Dec 10, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Dec 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Fix some test failures on Vista+.
parent
355818ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
dsurface.c
dlls/ddraw/tests/dsurface.c
+12
-5
No files found.
dlls/ddraw/tests/dsurface.c
View file @
0f0d92bf
...
...
@@ -3048,6 +3048,7 @@ static void GetDCFormatTest(void)
const
char
*
name
;
DDPIXELFORMAT
fmt
;
BOOL
getdc_capable
;
HRESULT
alt_result
;
}
testdata
[]
=
{
{
"D3DFMT_A8R8G8B8"
,
...
...
@@ -3071,7 +3072,8 @@ static void GetDCFormatTest(void)
sizeof
(
DDPIXELFORMAT
),
DDPF_RGB
,
0
,
{
32
},
{
0x000000ff
},
{
0x0000ff00
},
{
0x00ff0000
},
{
0x00000000
}
},
TRUE
TRUE
,
DDERR_CANTCREATEDC
/* Vista+ */
},
{
"D3DFMT_X8B8G8R8"
,
...
...
@@ -3079,7 +3081,8 @@ static void GetDCFormatTest(void)
sizeof
(
DDPIXELFORMAT
),
DDPF_RGB
|
DDPF_ALPHAPIXELS
,
0
,
{
32
},
{
0x000000ff
},
{
0x0000ff00
},
{
0x00ff0000
},
{
0xff000000
}
},
TRUE
TRUE
,
DDERR_CANTCREATEDC
/* Vista+ */
},
{
"D3DFMT_A4R4G4B4"
,
...
...
@@ -3087,7 +3090,8 @@ static void GetDCFormatTest(void)
sizeof
(
DDPIXELFORMAT
),
DDPF_RGB
|
DDPF_ALPHAPIXELS
,
0
,
{
16
},
{
0x00000f00
},
{
0x000000f0
},
{
0x0000000f
},
{
0x0000f000
}
},
TRUE
TRUE
,
DDERR_CANTCREATEDC
/* Vista+ */
},
{
"D3DFMT_X4R4G4B4"
,
...
...
@@ -3095,7 +3099,8 @@ static void GetDCFormatTest(void)
sizeof
(
DDPIXELFORMAT
),
DDPF_RGB
,
0
,
{
16
},
{
0x00000f00
},
{
0x000000f0
},
{
0x0000000f
},
{
0x00000000
}
},
TRUE
TRUE
,
DDERR_CANTCREATEDC
/* Vista+ */
},
{
"D3DFMT_R5G6B5"
,
...
...
@@ -3240,7 +3245,9 @@ static void GetDCFormatTest(void)
hr
=
IDirectDrawSurface7_GetDC
(
surface
,
&
dc
);
if
(
testdata
[
i
].
getdc_capable
)
{
ok
(
SUCCEEDED
(
hr
),
"GetDC on a %s surface failed(0x%08x), expected it to work
\n
"
,
ok
(
SUCCEEDED
(
hr
)
||
(
testdata
[
i
].
alt_result
&&
hr
==
testdata
[
i
].
alt_result
),
"GetDC on a %s surface failed(0x%08x), expected it to work
\n
"
,
testdata
[
i
].
name
,
hr
);
}
else
...
...
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