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
7dd09941
Commit
7dd09941
authored
Sep 07, 2008
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Fix compilation on systems that don't support nameless unions.
parent
e5f19854
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
overlay.c
dlls/ddraw/tests/overlay.c
+11
-11
No files found.
dlls/ddraw/tests/overlay.c
View file @
7dd09941
...
...
@@ -40,9 +40,9 @@ static IDirectDrawSurface7 *create_overlay(DWORD width, DWORD height, DWORD form
ddsd
.
dwWidth
=
width
;
ddsd
.
dwHeight
=
height
;
ddsd
.
ddsCaps
.
dwCaps
=
DDSCAPS_OVERLAY
;
ddsd
.
ddpfPixelFormat
.
dwSize
=
sizeof
(
ddsd
.
ddpfPixelFormat
);
ddsd
.
ddpfPixelFormat
.
dwFlags
=
DDPF_FOURCC
;
ddsd
.
ddpfPixelFormat
.
dwFourCC
=
format
;
U4
(
ddsd
).
ddpfPixelFormat
.
dwSize
=
sizeof
(
U4
(
ddsd
)
.
ddpfPixelFormat
);
U4
(
ddsd
)
.
ddpfPixelFormat
.
dwFlags
=
DDPF_FOURCC
;
U4
(
ddsd
)
.
ddpfPixelFormat
.
dwFourCC
=
format
;
hr
=
IDirectDraw7_CreateSurface
(
ddraw
,
&
ddsd
,
&
ret
,
NULL
);
if
(
FAILED
(
hr
))
return
NULL
;
else
return
ret
;
...
...
@@ -158,13 +158,13 @@ static void offscreen_test(void) {
ddsd
.
dwFlags
=
DDSD_CAPS
|
DDSD_HEIGHT
|
DDSD_WIDTH
|
DDSD_PIXELFORMAT
;
ddsd
.
dwWidth
=
64
;
ddsd
.
dwHeight
=
64
;
ddsd
.
ddpfPixelFormat
.
dwSize
=
sizeof
(
ddsd
.
ddpfPixelFormat
);
ddsd
.
ddpfPixelFormat
.
dwFlags
=
DDPF_RGB
;
ddsd
.
ddpfPixelFormat
.
dwFourCC
=
0
;
ddsd
.
ddpfPixelFormat
.
dwRGBBitCount
=
16
;
ddsd
.
ddpfPixelFormat
.
dwRBitMask
=
0xF800
;
ddsd
.
ddpfPixelFormat
.
dwGBitMask
=
0x07e0
;
ddsd
.
ddpfPixelFormat
.
dwBBitMask
=
0x001F
;
U4
(
ddsd
).
ddpfPixelFormat
.
dwSize
=
sizeof
(
U4
(
ddsd
)
.
ddpfPixelFormat
);
U4
(
ddsd
)
.
ddpfPixelFormat
.
dwFlags
=
DDPF_RGB
;
U4
(
ddsd
)
.
ddpfPixelFormat
.
dwFourCC
=
0
;
U1
(
U4
(
ddsd
).
ddpfPixelFormat
)
.
dwRGBBitCount
=
16
;
U2
(
U4
(
ddsd
).
ddpfPixelFormat
)
.
dwRBitMask
=
0xF800
;
U3
(
U4
(
ddsd
).
ddpfPixelFormat
)
.
dwGBitMask
=
0x07e0
;
U4
(
U4
(
ddsd
).
ddpfPixelFormat
)
.
dwBBitMask
=
0x001F
;
ddsd
.
ddsCaps
.
dwCaps
=
DDSCAPS_OFFSCREENPLAIN
;
hr
=
IDirectDraw7_CreateSurface
(
ddraw
,
&
ddsd
,
&
offscreen
,
NULL
);
ok
(
hr
==
DD_OK
,
"IDirectDraw7_CreateSurface failed with hr=0x%08x
\n
"
,
hr
);
...
...
@@ -204,7 +204,7 @@ static void yv12_test(void)
ok
(
desc
.
dwWidth
==
256
&&
desc
.
dwHeight
==
256
,
"Expected size 64x64, got %ux%u
\n
"
,
desc
.
dwWidth
,
desc
.
dwHeight
);
/* The overlay pitch seems to have 256 byte alignment */
ok
(
desc
.
lPitch
==
256
,
"Unexpected pitch %u, expected 256
\n
"
,
desc
.
lPitch
);
ok
(
U1
(
desc
).
lPitch
==
256
,
"Unexpected pitch %u, expected 256
\n
"
,
U1
(
desc
)
.
lPitch
);
hr
=
IDirectDrawSurface7_Unlock
(
surface
,
NULL
);
ok
(
hr
==
DD_OK
,
"IDirectDrawSurface7_Unlock returned 0x%08x, expected DD_OK
\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