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
8e64efee
Commit
8e64efee
authored
Mar 12, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Fix some ok() strings in the fog test.
parent
a242d601
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
visual.c
dlls/d3d9/tests/visual.c
+3
-3
No files found.
dlls/d3d9/tests/visual.c
View file @
8e64efee
...
...
@@ -1026,21 +1026,21 @@ static void fog_test(IDirect3DDevice9 *device)
}
IDirect3DDevice9_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
color
=
getPixelColor
(
device
,
160
,
360
);
ok
(
color
==
0x0000FF00
||
color
==
0x0000FE00
,
"Reversed %s fog: z=0.1 has color 0x%08x, expected 0x0000ff00
\n
"
,
mode
,
color
);
ok
(
color
==
0x0000FF00
||
color
==
0x0000FE00
,
"Reversed %s fog: z=0.1 has color 0x%08x, expected 0x0000ff00
or 0x0000fe00
\n
"
,
mode
,
color
);
color
=
getPixelColor
(
device
,
160
,
120
);
r
=
(
color
&
0x00ff0000
)
>>
16
;
g
=
(
color
&
0x0000ff00
)
>>
8
;
b
=
(
color
&
0x000000ff
);
ok
(
r
==
0x00
&&
g
>=
0x29
&&
g
<=
0x2d
&&
b
>=
0xd2
&&
b
<=
0xd6
,
"Reversed %s fog: z=0.7 has color 0x%08x
, expected
\n
"
,
mode
,
color
);
"Reversed %s fog: z=0.7 has color 0x%08x
\n
"
,
mode
,
color
);
color
=
getPixelColor
(
device
,
480
,
120
);
r
=
(
color
&
0x00ff0000
)
>>
16
;
g
=
(
color
&
0x0000ff00
)
>>
8
;
b
=
(
color
&
0x000000ff
);
ok
(
r
==
0x00
&&
g
>=
0xa8
&&
g
<=
0xac
&&
b
>=
0x53
&&
b
<=
0x57
,
"Reversed %s fog: z=0.4 has color 0x%08x
, expected
\n
"
,
mode
,
color
);
"Reversed %s fog: z=0.4 has color 0x%08x
\n
"
,
mode
,
color
);
color
=
getPixelColor
(
device
,
480
,
360
);
ok
(
color
==
0x000000ff
,
"Reversed %s fog: z=0.9 has color 0x%08x, expected 0x000000ff
\n
"
,
mode
,
color
);
...
...
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