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
059b3ac7
Commit
059b3ac7
authored
Dec 24, 2023
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Jan 10, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Test the presentation parameters after creating an additional swap chain.
parent
8eefd729
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
device.c
dlls/d3d9/tests/device.c
+14
-1
No files found.
dlls/d3d9/tests/device.c
View file @
059b3ac7
...
...
@@ -1263,6 +1263,7 @@ static void test_swapchain(void)
IDirect3DSurface9
*
backbuffer
,
*
stereo_buffer
;
D3DPRESENT_PARAMETERS
d3dpp
;
IDirect3DDevice9
*
device
;
RECT
client_rect
;
IDirect3D9
*
d3d
;
ULONG
refcount
;
HWND
window
,
window2
;
...
...
@@ -1341,11 +1342,23 @@ static void test_swapchain(void)
ok
(
swapchainX
==
NULL
,
"Swapchain 1 is %p
\n
"
,
swapchainX
);
if
(
swapchainX
)
IDirect3DSwapChain9_Release
(
swapchainX
);
memset
(
&
d3dpp
,
0
,
sizeof
(
d3dpp
));
d3dpp
.
Windowed
=
TRUE
;
d3dpp
.
SwapEffect
=
D3DSWAPEFFECT_DISCARD
;
d3dpp
.
BackBufferFormat
=
D3DFMT_A8R8G8B8
;
GetClientRect
(
window
,
&
client_rect
);
/* Create a bunch of swapchains */
d3dpp
.
BackBufferCount
=
0
;
hr
=
IDirect3DDevice9_CreateAdditionalSwapChain
(
device
,
&
d3dpp
,
&
swapchain1
);
ok
(
SUCCEEDED
(
hr
),
"Got hr %#lx.
\n
"
,
hr
);
ok
(
d3dpp
.
BackBufferCount
==
1
,
"The back buffer count in the presentparams struct is %d
\n
"
,
d3dpp
.
BackBufferCount
);
todo_wine
ok
(
d3dpp
.
BackBufferWidth
==
client_rect
.
right
,
"Got unexpected BackBufferWidth %u, expected %ld.
\n
"
,
d3dpp
.
BackBufferWidth
,
client_rect
.
right
);
todo_wine
ok
(
d3dpp
.
BackBufferHeight
==
client_rect
.
bottom
,
"Got unexpected BackBufferHeight %u, expected %ld.
\n
"
,
d3dpp
.
BackBufferHeight
,
client_rect
.
bottom
);
ok
(
d3dpp
.
BackBufferFormat
==
D3DFMT_A8R8G8B8
,
"Got unexpected BackBufferFormat %#x.
\n
"
,
d3dpp
.
BackBufferFormat
);
ok
(
d3dpp
.
BackBufferCount
==
1
,
"Got unexpected BackBufferCount %u.
\n
"
,
d3dpp
.
BackBufferCount
);
ok
(
!
d3dpp
.
hDeviceWindow
,
"Got unexpected hDeviceWindow %p.
\n
"
,
d3dpp
.
hDeviceWindow
);
d3dpp
.
hDeviceWindow
=
NULL
;
d3dpp
.
BackBufferCount
=
1
;
...
...
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