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
090fd6d9
Commit
090fd6d9
authored
Jul 05, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Jul 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Fix compilation on systems that don't support nameless unions.
parent
7495d814
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
d3d.c
dlls/ddraw/tests/d3d.c
+4
-4
No files found.
dlls/ddraw/tests/d3d.c
View file @
090fd6d9
...
...
@@ -321,21 +321,21 @@ static void LightTest(void)
rc
=
IDirect3DDevice7_SetMaterial
(
lpD3DDevice
,
&
mat
);
ok
(
rc
==
D3D_OK
,
"IDirect3DDevice7_SetMaterial returned: %x
\n
"
,
rc
);
mat
.
power
=
129
.
0
;
U4
(
mat
)
.
power
=
129
.
0
;
rc
=
IDirect3DDevice7_SetMaterial
(
lpD3DDevice
,
&
mat
);
ok
(
rc
==
D3D_OK
,
"IDirect3DDevice7_SetMaterial(power = 129.0) returned: %x
\n
"
,
rc
);
memset
(
&
mat
,
0
,
sizeof
(
mat
));
rc
=
IDirect3DDevice7_GetMaterial
(
lpD3DDevice
,
&
mat
);
ok
(
rc
==
D3D_OK
,
"IDirect3DDevice7_GetMaterial returned: %x
\n
"
,
rc
);
ok
(
mat
.
power
==
129
,
"Returned power is %f
\n
"
,
mat
.
power
);
ok
(
U4
(
mat
).
power
==
129
,
"Returned power is %f
\n
"
,
U4
(
mat
)
.
power
);
mat
.
power
=
-
1
.
0
;
U4
(
mat
)
.
power
=
-
1
.
0
;
rc
=
IDirect3DDevice7_SetMaterial
(
lpD3DDevice
,
&
mat
);
ok
(
rc
==
D3D_OK
,
"IDirect3DDevice7_SetMaterial(power = -1.0) returned: %x
\n
"
,
rc
);
memset
(
&
mat
,
0
,
sizeof
(
mat
));
rc
=
IDirect3DDevice7_GetMaterial
(
lpD3DDevice
,
&
mat
);
ok
(
rc
==
D3D_OK
,
"IDirect3DDevice7_GetMaterial returned: %x
\n
"
,
rc
);
ok
(
mat
.
power
==
-
1
,
"Returned power is %f
\n
"
,
mat
.
power
);
ok
(
U4
(
mat
).
power
==
-
1
,
"Returned power is %f
\n
"
,
U4
(
mat
)
.
power
);
}
static
void
ProcessVerticesTest
(
void
)
...
...
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