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
2308f4cf
Commit
2308f4cf
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: Rename a variable.
parent
51c0f2a7
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 @
2308f4cf
...
...
@@ -423,14 +423,14 @@ static void fog_test(IDirect3DDevice7 *device)
D3DDEVICEDESC7
caps
;
/* Gets full z based fog with linear fog, no fog with specular color */
struct
sVertex
un
s
transformed_1
[]
=
{
struct
sVertex
untransformed_1
[]
=
{
{
-
1
,
-
1
,
0
.
1
f
,
0xFFFF0000
,
0xFF000000
},
{
-
1
,
0
,
0
.
1
f
,
0xFFFF0000
,
0xFF000000
},
{
0
,
0
,
0
.
1
f
,
0xFFFF0000
,
0xFF000000
},
{
0
,
-
1
,
0
.
1
f
,
0xFFFF0000
,
0xFF000000
},
};
/* Ok, I am too lazy to deal with transform matrices */
struct
sVertex
un
s
transformed_2
[]
=
{
struct
sVertex
untransformed_2
[]
=
{
{
-
1
,
0
,
1
.
0
f
,
0xFFFF0000
,
0xFF000000
},
{
-
1
,
1
,
1
.
0
f
,
0xFFFF0000
,
0xFF000000
},
{
0
,
1
,
1
.
0
f
,
0xFFFF0000
,
0xFF000000
},
...
...
@@ -483,7 +483,7 @@ static void fog_test(IDirect3DDevice7 *device)
{
/* Untransformed, vertex fog = NONE, table fog = NONE: Read the fog weighting from the specular color */
hr
=
IDirect3DDevice7_DrawIndexedPrimitive
(
device
,
D3DPT_TRIANGLELIST
,
D3DFVF_XYZ
|
D3DFVF_DIFFUSE
|
D3DFVF_SPECULAR
,
un
s
transformed_1
,
4
,
Indices
,
6
,
0
);
untransformed_1
,
4
,
Indices
,
6
,
0
);
ok
(
hr
==
D3D_OK
,
"DrawIndexedPrimitive returned %08x
\n
"
,
hr
);
/* That makes it use the Z value */
...
...
@@ -493,7 +493,7 @@ static void fog_test(IDirect3DDevice7 *device)
* Use the Z value as input into the equation
*/
hr
=
IDirect3DDevice7_DrawIndexedPrimitive
(
device
,
D3DPT_TRIANGLELIST
,
D3DFVF_XYZ
|
D3DFVF_DIFFUSE
|
D3DFVF_SPECULAR
,
un
s
transformed_2
,
4
,
Indices
,
6
,
0
);
untransformed_2
,
4
,
Indices
,
6
,
0
);
ok
(
hr
==
D3D_OK
,
"DrawIndexedPrimitive returned %08x
\n
"
,
hr
);
/* transformed verts */
...
...
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