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
b6af8a7e
Commit
b6af8a7e
authored
Jul 22, 2011
by
Matteo Bruni
Committed by
Alexandre Julliard
Jul 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Fix some messages.
parent
2308f4cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
visual.c
dlls/ddraw/tests/visual.c
+4
-4
No files found.
dlls/ddraw/tests/visual.c
View file @
b6af8a7e
...
...
@@ -465,19 +465,19 @@ static void fog_test(IDirect3DDevice7 *device)
hr
=
IDirect3DDevice7_SetRenderState
(
device
,
D3DRENDERSTATE_FOGENABLE
,
TRUE
);
ok
(
hr
==
D3D_OK
,
"Turning on fog calculations returned %08x
\n
"
,
hr
);
hr
=
IDirect3DDevice7_SetRenderState
(
device
,
D3DRENDERSTATE_FOGCOLOR
,
0xFF00FF00
/* A nice green */
);
ok
(
hr
==
D3D_OK
,
"
Turning on fog calculations
returned %08x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"
Setting fog color
returned %08x
\n
"
,
hr
);
/* First test: Both table fog and vertex fog off */
hr
=
IDirect3DDevice7_SetRenderState
(
device
,
D3DRENDERSTATE_FOGTABLEMODE
,
D3DFOG_NONE
);
ok
(
hr
==
D3D_OK
,
"Turning off table fog returned %08x
\n
"
,
hr
);
hr
=
IDirect3DDevice7_SetRenderState
(
device
,
D3DRENDERSTATE_FOGVERTEXMODE
,
D3DFOG_NONE
);
ok
(
hr
==
D3D_OK
,
"Turning off
table
fog returned %08x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Turning off
vertex
fog returned %08x
\n
"
,
hr
);
/* Start = 0, end = 1. Should be default, but set them */
hr
=
IDirect3DDevice7_SetRenderState
(
device
,
D3DRENDERSTATE_FOGSTART
,
*
((
DWORD
*
)
&
start
));
ok
(
hr
==
D3D_OK
,
"Setting fog start returned %08x
\n
"
,
hr
);
hr
=
IDirect3DDevice7_SetRenderState
(
device
,
D3DRENDERSTATE_FOGEND
,
*
((
DWORD
*
)
&
end
));
ok
(
hr
==
D3D_OK
,
"Setting fog
start
returned %08x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Setting fog
end
returned %08x
\n
"
,
hr
);
if
(
IDirect3DDevice7_BeginScene
(
device
)
==
D3D_OK
)
{
...
...
@@ -488,7 +488,7 @@ static void fog_test(IDirect3DDevice7 *device)
/* That makes it use the Z value */
hr
=
IDirect3DDevice7_SetRenderState
(
device
,
D3DRENDERSTATE_FOGVERTEXMODE
,
D3DFOG_LINEAR
);
ok
(
hr
==
D3D_OK
,
"
Turning off table fog
returned %08x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"
Setting fog vertex mode to D3DFOG_LINEAR
returned %08x
\n
"
,
hr
);
/* Untransformed, vertex fog != none (or table fog != none):
* Use the Z value as input into the equation
*/
...
...
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