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
4ba16af1
Commit
4ba16af1
authored
Apr 14, 2008
by
Francois Gouget
Committed by
Alexandre Julliard
Apr 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Fix compilation on systems that don't support nameless unions.
parent
7b404ff9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
visual.c
dlls/ddraw/tests/visual.c
+10
-10
No files found.
dlls/ddraw/tests/visual.c
View file @
4ba16af1
...
...
@@ -1763,7 +1763,7 @@ static void D3D1_ViewportClearTest(void)
memset
(
&
mat
,
0
,
sizeof
(
mat
));
mat
.
dwSize
=
sizeof
(
mat
);
U1
(
U
1
(
mat
).
diffuse
).
r
=
1
.
0
f
;
U1
(
U
(
mat
).
diffuse
).
r
=
1
.
0
f
;
hr
=
IDirect3DMaterial_SetMaterial
(
bgMaterial
,
&
mat
);
ok
(
hr
==
D3D_OK
,
"IDirect3DMaterial_SetMaterial failed: %08x
\n
"
,
hr
);
...
...
@@ -1781,16 +1781,16 @@ static void D3D1_ViewportClearTest(void)
if
(
SUCCEEDED
(
hr
))
{
D3DRECT
rect
;
rect
.
x1
=
rect
.
y1
=
0
;
rect
.
x2
=
640
;
rect
.
y2
=
480
;
U1
(
rect
).
x1
=
U2
(
rect
)
.
y1
=
0
;
U3
(
rect
)
.
x2
=
640
;
U4
(
rect
)
.
y2
=
480
;
hr
=
IDirect3DViewport_Clear
(
Viewport
,
1
,
&
rect
,
D3DCLEAR_TARGET
);
ok
(
hr
==
D3D_OK
,
"IDirect3DViewport_Clear failed: %08x
\n
"
,
hr
);
memset
(
&
mat
,
0
,
sizeof
(
mat
));
mat
.
dwSize
=
sizeof
(
mat
);
U
1
(
U1
(
mat
).
diffuse
).
b
=
1
.
0
f
;
U
3
(
U
(
mat
).
diffuse
).
b
=
1
.
0
f
;
hr
=
IDirect3DMaterial_SetMaterial
(
bgMaterial
,
&
mat
);
ok
(
hr
==
D3D_OK
,
"IDirect3DMaterial_SetMaterial failed: %08x
\n
"
,
hr
);
...
...
@@ -1832,7 +1832,7 @@ static DWORD D3D3_getPixelColor(IDirectDraw4 *DirectDraw, IDirectDrawSurface4 *S
*/
memset
(
&
ddsd
,
0
,
sizeof
(
ddsd
));
ddsd
.
dwSize
=
sizeof
(
ddsd
);
ddsd
.
ddpfPixelFormat
.
dwSize
=
sizeof
(
ddsd
.
ddpfPixelFormat
);
U4
(
ddsd
).
ddpfPixelFormat
.
dwSize
=
sizeof
(
U4
(
ddsd
)
.
ddpfPixelFormat
);
ddsd
.
dwFlags
=
DDSD_WIDTH
|
DDSD_HEIGHT
|
DDSD_CAPS
;
ddsd
.
dwWidth
=
640
;
ddsd
.
dwHeight
=
480
;
...
...
@@ -1847,7 +1847,7 @@ static DWORD D3D3_getPixelColor(IDirectDraw4 *DirectDraw, IDirectDrawSurface4 *S
memset
(
&
ddsd
,
0
,
sizeof
(
ddsd
));
ddsd
.
dwSize
=
sizeof
(
ddsd
);
ddsd
.
ddpfPixelFormat
.
dwSize
=
sizeof
(
ddsd
.
ddpfPixelFormat
);
U4
(
ddsd
).
ddpfPixelFormat
.
dwSize
=
sizeof
(
U4
(
ddsd
)
.
ddpfPixelFormat
);
hr
=
IDirectDrawSurface4_BltFast
(
surf
,
0
,
0
,
Surface
,
NULL
,
0
);
ok
(
hr
==
DD_OK
,
"IDirectDrawSurface_BltFast returned %08x
\n
"
,
hr
);
...
...
@@ -2025,9 +2025,9 @@ static void D3D3_ViewportClearTest(void)
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice3_SetRenderState returned %08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
rect
.
x1
=
rect
.
y1
=
0
;
rect
.
x2
=
640
;
rect
.
y2
=
480
;
U1
(
rect
).
x1
=
U2
(
rect
)
.
y1
=
0
;
U3
(
rect
)
.
x2
=
640
;
U4
(
rect
)
.
y2
=
480
;
hr
=
IDirect3DViewport3_Clear2
(
Viewport3
,
1
,
&
rect
,
D3DCLEAR_TARGET
,
0x00ff00
,
0
.
0
f
,
0
);
ok
(
hr
==
D3D_OK
,
"IDirect3DViewport3_Clear2 failed, hr = %08x
\n
"
,
hr
);
...
...
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