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
079686b7
Commit
079686b7
authored
Jun 25, 2008
by
H. Verbeet
Committed by
Alexandre Julliard
Jun 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Use color_match() in fog_with_shader_test().
parent
c433562a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
visual.c
dlls/d3d9/tests/visual.c
+1
-3
No files found.
dlls/d3d9/tests/visual.c
View file @
079686b7
...
...
@@ -1463,9 +1463,7 @@ static void fog_with_shader_test(IDirect3DDevice9 *device)
/* As the red and green component are the result of blending use 5% tolerance on the expected value */
color
=
getPixelColor
(
device
,
128
,
240
);
ok
((
unsigned
char
)(
color
)
==
((
unsigned
char
)
test_data
[
i
].
color
[
j
])
&&
abs
(
((
unsigned
char
)(
color
>>
8
))
-
(
unsigned
char
)(
test_data
[
i
].
color
[
j
]
>>
8
)
)
<
13
&&
abs
(
((
unsigned
char
)(
color
>>
16
))
-
(
unsigned
char
)(
test_data
[
i
].
color
[
j
]
>>
16
)
)
<
13
,
ok
(
color_match
(
color
,
test_data
[
i
].
color
[
j
],
13
),
"fog vs%i ps%i fvm%i ftm%i %d: got color %08x, expected %08x +-5%%
\n
"
,
test_data
[
i
].
vshader
,
test_data
[
i
].
pshader
,
test_data
[
i
].
vfog
,
test_data
[
i
].
tfog
,
j
,
color
,
test_data
[
i
].
color
[
j
]);
}
...
...
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