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
9776a3ba
Commit
9776a3ba
authored
Nov 03, 2011
by
Octavian Voicu
Committed by
Alexandre Julliard
Nov 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Use more common pixel formats and caps for attachment tests.
parent
6e7bb649
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
dsurface.c
dlls/ddraw/tests/dsurface.c
+12
-6
No files found.
dlls/ddraw/tests/dsurface.c
View file @
9776a3ba
...
...
@@ -1427,15 +1427,18 @@ static void AttachmentTest7(void)
ddsd
.
dwHeight
=
64
;
ddsd
.
ddsCaps
.
dwCaps
=
DDSCAPS_OFFSCREENPLAIN
|
DDSCAPS_3DDEVICE
;
U4
(
ddsd
).
ddpfPixelFormat
.
dwSize
=
sizeof
(
U4
(
ddsd
).
ddpfPixelFormat
);
U4
(
ddsd
).
ddpfPixelFormat
.
dwFlags
=
DDPF_PALETTEINDEXED8
|
DDPF_RGB
;
U1
(
U4
(
ddsd
).
ddpfPixelFormat
).
dwRGBBitCount
=
8
;
U4
(
ddsd
).
ddpfPixelFormat
.
dwFlags
=
DDPF_RGB
;
/* D3DFMT_R5G6B5 */
U1
(
U4
(
ddsd
).
ddpfPixelFormat
).
dwRGBBitCount
=
16
;
U2
(
U4
(
ddsd
).
ddpfPixelFormat
).
dwRBitMask
=
0xF800
;
U3
(
U4
(
ddsd
).
ddpfPixelFormat
).
dwGBitMask
=
0x07E0
;
U4
(
U4
(
ddsd
).
ddpfPixelFormat
).
dwBBitMask
=
0x001F
;
memset
(
&
ddsd2
,
0
,
sizeof
(
ddsd2
));
ddsd2
.
dwSize
=
sizeof
(
ddsd2
);
ddsd2
.
dwFlags
=
DDSD_CAPS
|
DDSD_WIDTH
|
DDSD_HEIGHT
|
DDSD_PIXELFORMAT
;
ddsd2
.
dwWidth
=
ddsd
.
dwWidth
;
ddsd2
.
dwHeight
=
ddsd
.
dwHeight
;
ddsd2
.
ddsCaps
.
dwCaps
=
DDSCAPS_
3DDEVICE
|
DDSCAPS_
ZBUFFER
;
ddsd2
.
ddsCaps
.
dwCaps
=
DDSCAPS_ZBUFFER
;
U4
(
ddsd2
).
ddpfPixelFormat
.
dwSize
=
sizeof
(
U4
(
ddsd2
).
ddpfPixelFormat
);
U4
(
ddsd2
).
ddpfPixelFormat
.
dwFlags
=
DDPF_ZBUFFER
;
U1
(
U4
(
ddsd2
).
ddpfPixelFormat
).
dwZBufferBitDepth
=
16
;
...
...
@@ -1701,15 +1704,18 @@ static void AttachmentTest(void)
ddsd
.
dwHeight
=
64
;
ddsd
.
ddsCaps
.
dwCaps
=
DDSCAPS_OFFSCREENPLAIN
|
DDSCAPS_3DDEVICE
;
U4
(
ddsd
).
ddpfPixelFormat
.
dwSize
=
sizeof
(
U4
(
ddsd
).
ddpfPixelFormat
);
U4
(
ddsd
).
ddpfPixelFormat
.
dwFlags
=
DDPF_PALETTEINDEXED8
|
DDPF_RGB
;
U1
(
U4
(
ddsd
).
ddpfPixelFormat
).
dwRGBBitCount
=
8
;
U4
(
ddsd
).
ddpfPixelFormat
.
dwFlags
=
DDPF_RGB
;
/* D3DFMT_R5G6B5 */
U1
(
U4
(
ddsd
).
ddpfPixelFormat
).
dwRGBBitCount
=
16
;
U2
(
U4
(
ddsd
).
ddpfPixelFormat
).
dwRBitMask
=
0xF800
;
U3
(
U4
(
ddsd
).
ddpfPixelFormat
).
dwGBitMask
=
0x07E0
;
U4
(
U4
(
ddsd
).
ddpfPixelFormat
).
dwBBitMask
=
0x001F
;
memset
(
&
ddsd2
,
0
,
sizeof
(
ddsd2
));
ddsd2
.
dwSize
=
sizeof
(
ddsd2
);
ddsd2
.
dwFlags
=
DDSD_CAPS
|
DDSD_WIDTH
|
DDSD_HEIGHT
|
DDSD_PIXELFORMAT
;
ddsd2
.
dwWidth
=
ddsd
.
dwWidth
;
ddsd2
.
dwHeight
=
ddsd
.
dwHeight
;
ddsd2
.
ddsCaps
.
dwCaps
=
DDSCAPS_
3DDEVICE
|
DDSCAPS_
ZBUFFER
;
ddsd2
.
ddsCaps
.
dwCaps
=
DDSCAPS_ZBUFFER
;
U4
(
ddsd2
).
ddpfPixelFormat
.
dwSize
=
sizeof
(
U4
(
ddsd2
).
ddpfPixelFormat
);
U4
(
ddsd2
).
ddpfPixelFormat
.
dwFlags
=
DDPF_ZBUFFER
;
U1
(
U4
(
ddsd2
).
ddpfPixelFormat
).
dwZBufferBitDepth
=
16
;
...
...
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