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
527e1ae1
Commit
527e1ae1
authored
Feb 05, 2012
by
Francois Gouget
Committed by
Alexandre Julliard
Feb 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Fix compilation on systems that don't support nameless unions.
parent
98c621c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ddraw1.c
dlls/ddraw/tests/ddraw1.c
+1
-1
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+3
-3
No files found.
dlls/ddraw/tests/ddraw1.c
View file @
527e1ae1
...
...
@@ -719,7 +719,7 @@ static void test_surface_interface_mismatch(void)
surface_desc
.
dwSize
=
sizeof
(
surface_desc
);
surface_desc
.
dwFlags
=
DDSD_CAPS
|
DDSD_ZBUFFERBITDEPTH
|
DDSD_WIDTH
|
DDSD_HEIGHT
;
surface_desc
.
ddsCaps
.
dwCaps
=
DDSCAPS_ZBUFFER
;
surface_desc
.
dwZBufferBitDepth
=
z_depth
;
U2
(
surface_desc
)
.
dwZBufferBitDepth
=
z_depth
;
surface_desc
.
dwWidth
=
640
;
surface_desc
.
dwHeight
=
480
;
hr
=
IDirectDraw_CreateSurface
(
ddraw
,
&
surface_desc
,
&
ds
,
NULL
);
...
...
dlls/ddraw/tests/ddraw2.c
View file @
527e1ae1
...
...
@@ -758,7 +758,7 @@ static void test_surface_interface_mismatch(void)
surface_desc
.
dwSize
=
sizeof
(
surface_desc
);
surface_desc
.
dwFlags
=
DDSD_CAPS
|
DDSD_ZBUFFERBITDEPTH
|
DDSD_WIDTH
|
DDSD_HEIGHT
;
surface_desc
.
ddsCaps
.
dwCaps
=
DDSCAPS_ZBUFFER
;
surface_desc
.
dwZBufferBitDepth
=
z_depth
;
U2
(
surface_desc
)
.
dwZBufferBitDepth
=
z_depth
;
surface_desc
.
dwWidth
=
640
;
surface_desc
.
dwHeight
=
480
;
hr
=
IDirectDraw2_CreateSurface
(
ddraw
,
&
surface_desc
,
&
ds
,
NULL
);
...
...
@@ -931,7 +931,7 @@ static void test_depth_blit(void)
ddsd_new
.
ddsCaps
.
dwCaps
=
DDSCAPS_ZBUFFER
;
ddsd_new
.
dwWidth
=
ddsd_existing
.
dwWidth
;
ddsd_new
.
dwHeight
=
ddsd_existing
.
dwHeight
;
U4
(
ddsd_new
).
ddpfPixelFormat
=
U4
(
ddsd_existing
)
.
ddpfPixelFormat
;
ddsd_new
.
ddpfPixelFormat
=
ddsd_existing
.
ddpfPixelFormat
;
hr
=
IDirectDraw2_CreateSurface
(
ddraw
,
&
ddsd_new
,
&
ds2
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create a surface, hr %#x.
\n
"
,
hr
);
hr
=
IDirectDraw2_CreateSurface
(
ddraw
,
&
ddsd_new
,
&
ds3
,
NULL
);
...
...
@@ -1028,7 +1028,7 @@ static void test_depth_blit(void)
* a reliable result(z = 0.0) */
memset
(
&
fx
,
0
,
sizeof
(
fx
));
fx
.
dwSize
=
sizeof
(
fx
);
fx
.
dwFillDepth
=
0
;
U5
(
fx
)
.
dwFillDepth
=
0
;
hr
=
IDirectDrawSurface_Blt
(
ds2
,
NULL
,
NULL
,
NULL
,
DDBLT_DEPTHFILL
|
DDBLT_WAIT
,
&
fx
);
ok
(
SUCCEEDED
(
hr
),
"Failed to clear the source z buffer, hr %#x.
\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