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
94eb50ed
Commit
94eb50ed
authored
Dec 05, 2013
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Fix compilation on systems that don't support nameless unions.
parent
6f22057c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
36 deletions
+36
-36
ddraw4.c
dlls/ddraw/tests/ddraw4.c
+18
-18
ddraw7.c
dlls/ddraw/tests/ddraw7.c
+18
-18
No files found.
dlls/ddraw/tests/ddraw4.c
View file @
94eb50ed
...
@@ -5203,12 +5203,12 @@ static void test_set_surface_desc(void)
...
@@ -5203,12 +5203,12 @@ static void test_set_surface_desc(void)
ddsd
.
dwFlags
=
DDSD_WIDTH
|
DDSD_HEIGHT
|
DDSD_CAPS
|
DDSD_PIXELFORMAT
;
ddsd
.
dwFlags
=
DDSD_WIDTH
|
DDSD_HEIGHT
|
DDSD_CAPS
|
DDSD_PIXELFORMAT
;
ddsd
.
dwWidth
=
8
;
ddsd
.
dwWidth
=
8
;
ddsd
.
dwHeight
=
8
;
ddsd
.
dwHeight
=
8
;
ddsd
.
ddpfPixelFormat
.
dwSize
=
sizeof
(
ddsd
.
ddpfPixelFormat
);
U4
(
ddsd
).
ddpfPixelFormat
.
dwSize
=
sizeof
(
U4
(
ddsd
)
.
ddpfPixelFormat
);
ddsd
.
ddpfPixelFormat
.
dwFlags
=
DDPF_RGB
;
U4
(
ddsd
)
.
ddpfPixelFormat
.
dwFlags
=
DDPF_RGB
;
U1
(
ddsd
.
ddpfPixelFormat
).
dwRGBBitCount
=
32
;
U1
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwRGBBitCount
=
32
;
U2
(
ddsd
.
ddpfPixelFormat
).
dwRBitMask
=
0x00ff0000
;
U2
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwRBitMask
=
0x00ff0000
;
U3
(
ddsd
.
ddpfPixelFormat
).
dwGBitMask
=
0x0000ff00
;
U3
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwGBitMask
=
0x0000ff00
;
U4
(
ddsd
.
ddpfPixelFormat
).
dwBBitMask
=
0x000000ff
;
U4
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwBBitMask
=
0x000000ff
;
ddsd
.
ddsCaps
.
dwCaps
=
DDSCAPS_SYSTEMMEMORY
;
ddsd
.
ddsCaps
.
dwCaps
=
DDSCAPS_SYSTEMMEMORY
;
hr
=
IDirectDraw4_CreateSurface
(
ddraw
,
&
ddsd
,
&
surface
,
NULL
);
hr
=
IDirectDraw4_CreateSurface
(
ddraw
,
&
ddsd
,
&
surface
,
NULL
);
...
@@ -5380,12 +5380,12 @@ static void test_set_surface_desc(void)
...
@@ -5380,12 +5380,12 @@ static void test_set_surface_desc(void)
/* Setting the pixelformat without LPSURFACE is an error, but with LPSURFACE it works. */
/* Setting the pixelformat without LPSURFACE is an error, but with LPSURFACE it works. */
ddsd
.
dwFlags
=
DDSD_PIXELFORMAT
;
ddsd
.
dwFlags
=
DDSD_PIXELFORMAT
;
ddsd
.
ddpfPixelFormat
.
dwSize
=
sizeof
(
ddsd
.
ddpfPixelFormat
);
U4
(
ddsd
).
ddpfPixelFormat
.
dwSize
=
sizeof
(
U4
(
ddsd
)
.
ddpfPixelFormat
);
ddsd
.
ddpfPixelFormat
.
dwFlags
=
DDPF_RGB
;
U4
(
ddsd
)
.
ddpfPixelFormat
.
dwFlags
=
DDPF_RGB
;
U1
(
ddsd
.
ddpfPixelFormat
).
dwRGBBitCount
=
32
;
U1
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwRGBBitCount
=
32
;
U2
(
ddsd
.
ddpfPixelFormat
).
dwRBitMask
=
0x00ff0000
;
U2
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwRBitMask
=
0x00ff0000
;
U3
(
ddsd
.
ddpfPixelFormat
).
dwGBitMask
=
0x0000ff00
;
U3
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwGBitMask
=
0x0000ff00
;
U4
(
ddsd
.
ddpfPixelFormat
).
dwBBitMask
=
0x000000ff
;
U4
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwBBitMask
=
0x000000ff
;
hr
=
IDirectDrawSurface4_SetSurfaceDesc
(
surface
,
&
ddsd
,
0
);
hr
=
IDirectDrawSurface4_SetSurfaceDesc
(
surface
,
&
ddsd
,
0
);
ok
(
hr
==
DDERR_INVALIDPARAMS
,
"Setting the pixel format returned %#x.
\n
"
,
hr
);
ok
(
hr
==
DDERR_INVALIDPARAMS
,
"Setting the pixel format returned %#x.
\n
"
,
hr
);
...
@@ -5417,12 +5417,12 @@ static void test_set_surface_desc(void)
...
@@ -5417,12 +5417,12 @@ static void test_set_surface_desc(void)
ddsd
.
dwFlags
=
DDSD_WIDTH
|
DDSD_HEIGHT
|
DDSD_CAPS
|
DDSD_PIXELFORMAT
;
ddsd
.
dwFlags
=
DDSD_WIDTH
|
DDSD_HEIGHT
|
DDSD_CAPS
|
DDSD_PIXELFORMAT
;
ddsd
.
dwWidth
=
8
;
ddsd
.
dwWidth
=
8
;
ddsd
.
dwHeight
=
8
;
ddsd
.
dwHeight
=
8
;
ddsd
.
ddpfPixelFormat
.
dwSize
=
sizeof
(
ddsd
.
ddpfPixelFormat
);
U4
(
ddsd
).
ddpfPixelFormat
.
dwSize
=
sizeof
(
U4
(
ddsd
)
.
ddpfPixelFormat
);
ddsd
.
ddpfPixelFormat
.
dwFlags
=
DDPF_RGB
;
U4
(
ddsd
)
.
ddpfPixelFormat
.
dwFlags
=
DDPF_RGB
;
U1
(
ddsd
.
ddpfPixelFormat
).
dwRGBBitCount
=
32
;
U1
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwRGBBitCount
=
32
;
U2
(
ddsd
.
ddpfPixelFormat
).
dwRBitMask
=
0x00ff0000
;
U2
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwRBitMask
=
0x00ff0000
;
U3
(
ddsd
.
ddpfPixelFormat
).
dwGBitMask
=
0x0000ff00
;
U3
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwGBitMask
=
0x0000ff00
;
U4
(
ddsd
.
ddpfPixelFormat
).
dwBBitMask
=
0x000000ff
;
U4
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwBBitMask
=
0x000000ff
;
ddsd
.
ddsCaps
.
dwCaps
=
invalid_caps_tests
[
i
].
caps
;
ddsd
.
ddsCaps
.
dwCaps
=
invalid_caps_tests
[
i
].
caps
;
ddsd
.
ddsCaps
.
dwCaps2
=
invalid_caps_tests
[
i
].
caps2
;
ddsd
.
ddsCaps
.
dwCaps2
=
invalid_caps_tests
[
i
].
caps2
;
...
...
dlls/ddraw/tests/ddraw7.c
View file @
94eb50ed
...
@@ -5090,12 +5090,12 @@ static void test_set_surface_desc(void)
...
@@ -5090,12 +5090,12 @@ static void test_set_surface_desc(void)
ddsd
.
dwFlags
=
DDSD_WIDTH
|
DDSD_HEIGHT
|
DDSD_CAPS
|
DDSD_PIXELFORMAT
;
ddsd
.
dwFlags
=
DDSD_WIDTH
|
DDSD_HEIGHT
|
DDSD_CAPS
|
DDSD_PIXELFORMAT
;
ddsd
.
dwWidth
=
8
;
ddsd
.
dwWidth
=
8
;
ddsd
.
dwHeight
=
8
;
ddsd
.
dwHeight
=
8
;
ddsd
.
ddpfPixelFormat
.
dwSize
=
sizeof
(
ddsd
.
ddpfPixelFormat
);
U4
(
ddsd
).
ddpfPixelFormat
.
dwSize
=
sizeof
(
U4
(
ddsd
)
.
ddpfPixelFormat
);
ddsd
.
ddpfPixelFormat
.
dwFlags
=
DDPF_RGB
;
U4
(
ddsd
)
.
ddpfPixelFormat
.
dwFlags
=
DDPF_RGB
;
U1
(
ddsd
.
ddpfPixelFormat
).
dwRGBBitCount
=
32
;
U1
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwRGBBitCount
=
32
;
U2
(
ddsd
.
ddpfPixelFormat
).
dwRBitMask
=
0x00ff0000
;
U2
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwRBitMask
=
0x00ff0000
;
U3
(
ddsd
.
ddpfPixelFormat
).
dwGBitMask
=
0x0000ff00
;
U3
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwGBitMask
=
0x0000ff00
;
U4
(
ddsd
.
ddpfPixelFormat
).
dwBBitMask
=
0x000000ff
;
U4
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwBBitMask
=
0x000000ff
;
ddsd
.
ddsCaps
.
dwCaps
=
DDSCAPS_SYSTEMMEMORY
;
ddsd
.
ddsCaps
.
dwCaps
=
DDSCAPS_SYSTEMMEMORY
;
hr
=
IDirectDraw7_CreateSurface
(
ddraw
,
&
ddsd
,
&
surface
,
NULL
);
hr
=
IDirectDraw7_CreateSurface
(
ddraw
,
&
ddsd
,
&
surface
,
NULL
);
...
@@ -5268,12 +5268,12 @@ static void test_set_surface_desc(void)
...
@@ -5268,12 +5268,12 @@ static void test_set_surface_desc(void)
/* Setting the pixelformat without LPSURFACE is an error, but with LPSURFACE it works. */
/* Setting the pixelformat without LPSURFACE is an error, but with LPSURFACE it works. */
ddsd
.
dwFlags
=
DDSD_PIXELFORMAT
;
ddsd
.
dwFlags
=
DDSD_PIXELFORMAT
;
ddsd
.
ddpfPixelFormat
.
dwSize
=
sizeof
(
ddsd
.
ddpfPixelFormat
);
U4
(
ddsd
).
ddpfPixelFormat
.
dwSize
=
sizeof
(
U4
(
ddsd
)
.
ddpfPixelFormat
);
ddsd
.
ddpfPixelFormat
.
dwFlags
=
DDPF_RGB
;
U4
(
ddsd
)
.
ddpfPixelFormat
.
dwFlags
=
DDPF_RGB
;
U1
(
ddsd
.
ddpfPixelFormat
).
dwRGBBitCount
=
32
;
U1
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwRGBBitCount
=
32
;
U2
(
ddsd
.
ddpfPixelFormat
).
dwRBitMask
=
0x00ff0000
;
U2
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwRBitMask
=
0x00ff0000
;
U3
(
ddsd
.
ddpfPixelFormat
).
dwGBitMask
=
0x0000ff00
;
U3
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwGBitMask
=
0x0000ff00
;
U4
(
ddsd
.
ddpfPixelFormat
).
dwBBitMask
=
0x000000ff
;
U4
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwBBitMask
=
0x000000ff
;
hr
=
IDirectDrawSurface7_SetSurfaceDesc
(
surface
,
&
ddsd
,
0
);
hr
=
IDirectDrawSurface7_SetSurfaceDesc
(
surface
,
&
ddsd
,
0
);
ok
(
hr
==
DDERR_INVALIDPARAMS
,
"Setting the pixel format returned %#x.
\n
"
,
hr
);
ok
(
hr
==
DDERR_INVALIDPARAMS
,
"Setting the pixel format returned %#x.
\n
"
,
hr
);
...
@@ -5305,12 +5305,12 @@ static void test_set_surface_desc(void)
...
@@ -5305,12 +5305,12 @@ static void test_set_surface_desc(void)
ddsd
.
dwFlags
=
DDSD_WIDTH
|
DDSD_HEIGHT
|
DDSD_CAPS
|
DDSD_PIXELFORMAT
;
ddsd
.
dwFlags
=
DDSD_WIDTH
|
DDSD_HEIGHT
|
DDSD_CAPS
|
DDSD_PIXELFORMAT
;
ddsd
.
dwWidth
=
8
;
ddsd
.
dwWidth
=
8
;
ddsd
.
dwHeight
=
8
;
ddsd
.
dwHeight
=
8
;
ddsd
.
ddpfPixelFormat
.
dwSize
=
sizeof
(
ddsd
.
ddpfPixelFormat
);
U4
(
ddsd
).
ddpfPixelFormat
.
dwSize
=
sizeof
(
U4
(
ddsd
)
.
ddpfPixelFormat
);
ddsd
.
ddpfPixelFormat
.
dwFlags
=
DDPF_RGB
;
U4
(
ddsd
)
.
ddpfPixelFormat
.
dwFlags
=
DDPF_RGB
;
U1
(
ddsd
.
ddpfPixelFormat
).
dwRGBBitCount
=
32
;
U1
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwRGBBitCount
=
32
;
U2
(
ddsd
.
ddpfPixelFormat
).
dwRBitMask
=
0x00ff0000
;
U2
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwRBitMask
=
0x00ff0000
;
U3
(
ddsd
.
ddpfPixelFormat
).
dwGBitMask
=
0x0000ff00
;
U3
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwGBitMask
=
0x0000ff00
;
U4
(
ddsd
.
ddpfPixelFormat
).
dwBBitMask
=
0x000000ff
;
U4
(
U4
(
ddsd
)
.
ddpfPixelFormat
).
dwBBitMask
=
0x000000ff
;
ddsd
.
ddsCaps
.
dwCaps
=
invalid_caps_tests
[
i
].
caps
;
ddsd
.
ddsCaps
.
dwCaps
=
invalid_caps_tests
[
i
].
caps
;
ddsd
.
ddsCaps
.
dwCaps2
=
invalid_caps_tests
[
i
].
caps2
;
ddsd
.
ddsCaps
.
dwCaps2
=
invalid_caps_tests
[
i
].
caps2
;
...
...
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