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
2aed2c3a
Commit
2aed2c3a
authored
Feb 18, 2015
by
Matteo Bruni
Committed by
Alexandre Julliard
Feb 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Allow more alternative results in the ATI1N test.
parent
5a318c3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
visual.c
dlls/d3d9/tests/visual.c
+13
-9
No files found.
dlls/d3d9/tests/visual.c
View file @
2aed2c3a
...
...
@@ -16728,15 +16728,17 @@ static void test_3dc_formats(void)
static
const
struct
{
struct
vec2
position
;
D3DCOLOR
amd
;
D3DCOLOR
nvidia
;
D3DCOLOR
amd_r500
;
D3DCOLOR
amd_r600
;
D3DCOLOR
nvidia_old
;
D3DCOLOR
nvidia_new
;
}
expected_colors
[]
=
{
{{
80
,
240
},
0x00
3f3f3
f
,
0x007f0000
},
{{
240
,
240
},
0x00
3f3f3
f
,
0x007f0000
},
{{
400
,
240
},
0x00007fff
,
0x00007fff
},
{{
560
,
240
},
0x007f00ff
,
0x007f00ff
},
{{
80
,
240
},
0x00
7fffff
,
0x003f3f3f
,
0x007f7f7
f
,
0x007f0000
},
{{
240
,
240
},
0x00
7fffff
,
0x003f3f3f
,
0x007f7f7
f
,
0x007f0000
},
{{
400
,
240
},
0x00007fff
,
0x00007fff
,
0x00007fff
,
0x00007fff
},
{{
560
,
240
},
0x007f00ff
,
0x007f00ff
,
0x007f00ff
,
0x007f00ff
},
};
IDirect3D9
*
d3d
;
IDirect3DDevice9
*
device
;
...
...
@@ -16835,9 +16837,11 @@ static void test_3dc_formats(void)
for
(
i
=
0
;
i
<
4
;
++
i
)
{
color
=
getPixelColor
(
device
,
expected_colors
[
i
].
position
.
x
,
expected_colors
[
i
].
position
.
y
);
ok
(
color_match
(
color
,
expected_colors
[
i
].
amd
,
1
)
||
color_match
(
color
,
expected_colors
[
i
].
nvidia
,
1
),
"Expected color 0x%08x or 0x%08x, got 0x%08x, case %u.
\n
"
,
expected_colors
[
i
].
amd
,
expected_colors
[
i
].
nvidia
,
color
,
i
);
ok
(
color_match
(
color
,
expected_colors
[
i
].
amd_r500
,
1
)
||
color_match
(
color
,
expected_colors
[
i
].
amd_r600
,
1
)
||
color_match
(
color
,
expected_colors
[
i
].
nvidia_old
,
1
)
||
color_match
(
color
,
expected_colors
[
i
].
nvidia_new
,
1
),
"Got unexpected color 0x%08x, case %u.
\n
"
,
color
,
i
);
}
hr
=
IDirect3DDevice9_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
...
...
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