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
21036e13
Commit
21036e13
authored
Jan 22, 2012
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Fix compilation on systems that don't support nameless unions.
parent
8eae13fd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
ddraw1.c
dlls/ddraw/tests/ddraw1.c
+2
-2
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+2
-2
ddraw4.c
dlls/ddraw/tests/ddraw4.c
+1
-1
ddraw7.c
dlls/ddraw/tests/ddraw7.c
+1
-1
No files found.
dlls/ddraw/tests/ddraw1.c
View file @
21036e13
...
...
@@ -137,7 +137,7 @@ static IDirect3DDevice *create_device(IDirectDraw *ddraw, HWND window, DWORD coo
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
);
...
...
@@ -408,7 +408,7 @@ static void test_clipper_blt(void)
hr
=
IDirectDrawSurface_Lock
(
src_surface
,
NULL
,
&
surface_desc
,
DDLOCK_WAIT
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to lock source surface, hr %#x.
\n
"
,
hr
);
ok
(
surface_desc
.
lPitch
==
2560
,
"Got unexpected surface pitch %u.
\n
"
,
surface_desc
.
lPitch
);
ok
(
U1
(
surface_desc
).
lPitch
==
2560
,
"Got unexpected surface pitch %u.
\n
"
,
U1
(
surface_desc
)
.
lPitch
);
ptr
=
surface_desc
.
lpSurface
;
memcpy
(
&
ptr
[
0
],
&
src_data
[
0
],
6
*
sizeof
(
DWORD
));
memcpy
(
&
ptr
[
640
],
&
src_data
[
6
],
6
*
sizeof
(
DWORD
));
...
...
dlls/ddraw/tests/ddraw2.c
View file @
21036e13
...
...
@@ -144,7 +144,7 @@ static IDirect3DDevice2 *create_device(IDirectDraw2 *ddraw, HWND window, DWORD c
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
);
...
...
@@ -418,7 +418,7 @@ static void test_clipper_blt(void)
hr
=
IDirectDrawSurface_Lock
(
src_surface
,
NULL
,
&
surface_desc
,
DDLOCK_WAIT
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to lock source surface, hr %#x.
\n
"
,
hr
);
ok
(
surface_desc
.
lPitch
==
2560
,
"Got unexpected surface pitch %u.
\n
"
,
surface_desc
.
lPitch
);
ok
(
U1
(
surface_desc
).
lPitch
==
2560
,
"Got unexpected surface pitch %u.
\n
"
,
U1
(
surface_desc
)
.
lPitch
);
ptr
=
surface_desc
.
lpSurface
;
memcpy
(
&
ptr
[
0
],
&
src_data
[
0
],
6
*
sizeof
(
DWORD
));
memcpy
(
&
ptr
[
640
],
&
src_data
[
6
],
6
*
sizeof
(
DWORD
));
...
...
dlls/ddraw/tests/ddraw4.c
View file @
21036e13
...
...
@@ -640,7 +640,7 @@ static void test_clipper_blt(void)
hr
=
IDirectDrawSurface4_Lock
(
src_surface
,
NULL
,
&
surface_desc
,
DDLOCK_WAIT
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to lock source surface, hr %#x.
\n
"
,
hr
);
ok
(
surface_desc
.
lPitch
==
2560
,
"Got unexpected surface pitch %u.
\n
"
,
surface_desc
.
lPitch
);
ok
(
U1
(
surface_desc
).
lPitch
==
2560
,
"Got unexpected surface pitch %u.
\n
"
,
U1
(
surface_desc
)
.
lPitch
);
ptr
=
surface_desc
.
lpSurface
;
memcpy
(
&
ptr
[
0
],
&
src_data
[
0
],
6
*
sizeof
(
DWORD
));
memcpy
(
&
ptr
[
640
],
&
src_data
[
6
],
6
*
sizeof
(
DWORD
));
...
...
dlls/ddraw/tests/ddraw7.c
View file @
21036e13
...
...
@@ -633,7 +633,7 @@ static void test_clipper_blt(void)
hr
=
IDirectDrawSurface7_Lock
(
src_surface
,
NULL
,
&
surface_desc
,
0
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to lock source surface, hr %#x.
\n
"
,
hr
);
ok
(
surface_desc
.
lPitch
==
2560
,
"Got unexpected surface pitch %u.
\n
"
,
surface_desc
.
lPitch
);
ok
(
U1
(
surface_desc
).
lPitch
==
2560
,
"Got unexpected surface pitch %u.
\n
"
,
U1
(
surface_desc
)
.
lPitch
);
ptr
=
surface_desc
.
lpSurface
;
memcpy
(
&
ptr
[
0
],
&
src_data
[
0
],
6
*
sizeof
(
DWORD
));
memcpy
(
&
ptr
[
640
],
&
src_data
[
6
],
6
*
sizeof
(
DWORD
));
...
...
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