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
eac78fd4
Commit
eac78fd4
authored
Sep 15, 2011
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Add some slop to the fog tests.
parent
c7b509b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
visual.c
dlls/ddraw/tests/visual.c
+6
-6
No files found.
dlls/ddraw/tests/visual.c
View file @
eac78fd4
...
...
@@ -586,15 +586,15 @@ static void fog_test(IDirect3DDevice7 *device)
}
color
=
getPixelColor
(
device
,
160
,
360
);
ok
(
color
==
0x00FF0000
,
"Untransformed vertex with no table or vertex fog has color %08x
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x00FF0000
,
1
)
,
"Untransformed vertex with no table or vertex fog has color %08x
\n
"
,
color
);
color
=
getPixelColor
(
device
,
160
,
120
);
ok
(
color
==
0x0000FF00
,
"Untransformed vertex with linear vertex fog has color %08x
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x0000FF00
,
1
)
,
"Untransformed vertex with linear vertex fog has color %08x
\n
"
,
color
);
color
=
getPixelColor
(
device
,
480
,
120
);
ok
(
color
==
0x00FFFF00
,
"Transformed vertex with linear vertex fog has color %08x
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x00FFFF00
,
1
)
,
"Transformed vertex with linear vertex fog has color %08x
\n
"
,
color
);
if
(
caps
.
dpcTriCaps
.
dwRasterCaps
&
D3DPRASTERCAPS_FOGTABLE
)
{
color
=
getPixelColor
(
device
,
480
,
360
);
ok
(
color
==
0x0000FF00
,
"Transformed vertex with linear table fog has color %08x
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x0000FF00
,
1
)
,
"Transformed vertex with linear table fog has color %08x
\n
"
,
color
);
}
else
{
...
...
@@ -641,7 +641,7 @@ static void fog_test(IDirect3DDevice7 *device)
color
=
getPixelColor
(
device
,
160
,
360
);
ok
(
color_match
(
color
,
0x00ff0000
,
4
),
"Unfogged quad has color %08x
\n
"
,
color
);
color
=
getPixelColor
(
device
,
160
,
120
);
ok
(
color
==
0x0000ff00
,
"Fogged out quad has color %08x
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x0000ff00
,
1
)
,
"Fogged out quad has color %08x
\n
"
,
color
);
/* Test fog behavior with an orthogonal (but not identity) projection matrix */
hr
=
IDirect3DDevice7_SetTransform
(
device
,
D3DTRANSFORMSTATE_WORLD
,
(
D3DMATRIX
*
)
world_mat2
);
...
...
@@ -673,7 +673,7 @@ static void fog_test(IDirect3DDevice7 *device)
color
=
getPixelColor
(
device
,
160
,
360
);
todo_wine
ok
(
color_match
(
color
,
0x00e51900
,
4
),
"Partially fogged quad has color %08x
\n
"
,
color
);
color
=
getPixelColor
(
device
,
160
,
120
);
ok
(
color
==
0x0000ff00
,
"Fogged out quad has color %08x
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x0000ff00
,
1
)
,
"Fogged out quad has color %08x
\n
"
,
color
);
hr
=
IDirect3DDevice7_SetTransform
(
device
,
D3DTRANSFORMSTATE_WORLD
,
(
D3DMATRIX
*
)
ident_mat
);
ok
(
hr
==
D3D_OK
,
"SetTransform returned %#08x
\n
"
,
hr
);
...
...
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