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
77440b09
Commit
77440b09
authored
May 27, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
May 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Fix compilation with Visual C++ 2005.
parent
e748d62e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
d3d.c
dlls/ddraw/tests/d3d.c
+5
-3
No files found.
dlls/ddraw/tests/d3d.c
View file @
77440b09
...
...
@@ -142,6 +142,8 @@ static void LightTest(void)
D3DLIGHT7
light
;
D3DLIGHT7
defaultlight
;
BOOL
bEnabled
=
FALSE
;
float
one
=
1
.
0
f
;
float
zero
=
0
.
0
f
;
/* Set a few lights with funky indices. */
memset
(
&
light
,
0
,
sizeof
(
light
));
...
...
@@ -256,7 +258,7 @@ static void LightTest(void)
U3
(
light
.
dcvDiffuse
).
b
=
1
.
f
;
U3
(
light
.
dvDirection
).
z
=
1
.
f
;
light
.
dvAttenuation0
=
-
1
.
0
/
0
.
0
;
/* -INFINITY */
light
.
dvAttenuation0
=
-
one
/
zero
;
/* -INFINITY */
rc
=
IDirect3DDevice7_SetLight
(
lpD3DDevice
,
103
,
&
light
);
ok
(
rc
==
DDERR_INVALIDPARAMS
,
"SetLight returned: %x
\n
"
,
rc
);
...
...
@@ -272,11 +274,11 @@ static void LightTest(void)
rc
=
IDirect3DDevice7_SetLight
(
lpD3DDevice
,
103
,
&
light
);
ok
(
rc
==
D3D_OK
,
"SetLight returned: %x
\n
"
,
rc
);
light
.
dvAttenuation0
=
1
.
0
/
0
.
0
;
/* +INFINITY */
light
.
dvAttenuation0
=
one
/
zero
;
/* +INFINITY */
rc
=
IDirect3DDevice7_SetLight
(
lpD3DDevice
,
103
,
&
light
);
ok
(
rc
==
D3D_OK
,
"SetLight returned: %x
\n
"
,
rc
);
light
.
dvAttenuation0
=
0
.
0
/
0
.
0
;
/* NaN */
light
.
dvAttenuation0
=
zero
/
zero
;
/* NaN */
rc
=
IDirect3DDevice7_SetLight
(
lpD3DDevice
,
103
,
&
light
);
ok
(
rc
==
D3D_OK
,
"SetLight returned: %x
\n
"
,
rc
);
...
...
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