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
7929155e
Commit
7929155e
authored
Apr 25, 2015
by
Francois Gouget
Committed by
Alexandre Julliard
Apr 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Fix compilation on systems that don't support nameless unions.
parent
0152b0da
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
ddraw1.c
dlls/ddraw/tests/ddraw1.c
+5
-5
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+5
-5
ddraw4.c
dlls/ddraw/tests/ddraw4.c
+5
-5
No files found.
dlls/ddraw/tests/ddraw1.c
View file @
7929155e
...
...
@@ -5612,11 +5612,11 @@ static void test_lighting(void)
memset
(
&
light_desc
,
0
,
sizeof
(
light_desc
));
light_desc
.
dwSize
=
sizeof
(
light_desc
);
light_desc
.
dltType
=
D3DLIGHT_DIRECTIONAL
;
U1
(
U
(
light_desc
)
.
dcvColor
).
r
=
0
.
0
f
;
U2
(
U
(
light_desc
)
.
dcvColor
).
g
=
0
.
0
f
;
U3
(
U
(
light_desc
)
.
dcvColor
).
b
=
1
.
0
f
;
U4
(
U
(
light_desc
)
.
dcvColor
).
a
=
1
.
0
f
;
light_desc
.
dvDirection
.
z
=
1
.
0
f
;
U1
(
light_desc
.
dcvColor
).
r
=
0
.
0
f
;
U2
(
light_desc
.
dcvColor
).
g
=
0
.
0
f
;
U3
(
light_desc
.
dcvColor
).
b
=
1
.
0
f
;
U4
(
light_desc
.
dcvColor
).
a
=
1
.
0
f
;
U3
(
light_desc
.
dvDirection
)
.
z
=
1
.
0
f
;
hr
=
IDirect3DLight_SetLight
(
light
,
&
light_desc
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set light, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DViewport_AddLight
(
viewport
,
light
);
...
...
dlls/ddraw/tests/ddraw2.c
View file @
7929155e
...
...
@@ -6587,11 +6587,11 @@ static void test_lighting(void)
memset
(
&
light_desc
,
0
,
sizeof
(
light_desc
));
light_desc
.
dwSize
=
sizeof
(
light_desc
);
light_desc
.
dltType
=
D3DLIGHT_DIRECTIONAL
;
U1
(
U
(
light_desc
)
.
dcvColor
).
r
=
0
.
0
f
;
U2
(
U
(
light_desc
)
.
dcvColor
).
g
=
0
.
0
f
;
U3
(
U
(
light_desc
)
.
dcvColor
).
b
=
1
.
0
f
;
U4
(
U
(
light_desc
)
.
dcvColor
).
a
=
1
.
0
f
;
light_desc
.
dvDirection
.
z
=
1
.
0
f
;
U1
(
light_desc
.
dcvColor
).
r
=
0
.
0
f
;
U2
(
light_desc
.
dcvColor
).
g
=
0
.
0
f
;
U3
(
light_desc
.
dcvColor
).
b
=
1
.
0
f
;
U4
(
light_desc
.
dcvColor
).
a
=
1
.
0
f
;
U3
(
light_desc
.
dvDirection
)
.
z
=
1
.
0
f
;
hr
=
IDirect3DLight_SetLight
(
light
,
(
D3DLIGHT
*
)
&
light_desc
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set light, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DViewport2_AddLight
(
viewport
,
light
);
...
...
dlls/ddraw/tests/ddraw4.c
View file @
7929155e
...
...
@@ -3938,11 +3938,11 @@ static void test_lighting(void)
memset
(
&
light_desc
,
0
,
sizeof
(
light_desc
));
light_desc
.
dwSize
=
sizeof
(
light_desc
);
light_desc
.
dltType
=
D3DLIGHT_DIRECTIONAL
;
U1
(
U
(
light_desc
)
.
dcvColor
).
r
=
1
.
0
f
;
U2
(
U
(
light_desc
)
.
dcvColor
).
g
=
1
.
0
f
;
U3
(
U
(
light_desc
)
.
dcvColor
).
b
=
1
.
0
f
;
U4
(
U
(
light_desc
)
.
dcvColor
).
a
=
1
.
0
f
;
light_desc
.
dvDirection
.
z
=
1
.
0
f
;
U1
(
light_desc
.
dcvColor
).
r
=
1
.
0
f
;
U2
(
light_desc
.
dcvColor
).
g
=
1
.
0
f
;
U3
(
light_desc
.
dcvColor
).
b
=
1
.
0
f
;
U4
(
light_desc
.
dcvColor
).
a
=
1
.
0
f
;
U3
(
light_desc
.
dvDirection
)
.
z
=
1
.
0
f
;
hr
=
IDirect3DLight_SetLight
(
light
,
(
D3DLIGHT
*
)
&
light_desc
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set light, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DViewport3_AddLight
(
viewport
,
light
);
...
...
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