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
beefff00
Commit
beefff00
authored
Dec 24, 2023
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Jan 10, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Test the presentation parameters after creating a device.
parent
7a9fba29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
device.c
dlls/d3d8/tests/device.c
+27
-0
No files found.
dlls/d3d8/tests/device.c
View file @
beefff00
...
...
@@ -8896,6 +8896,33 @@ static void test_swapchain_parameters(void)
IDirect3DDevice8_Release
(
device
);
}
memset
(
&
present_parameters
,
0
,
sizeof
(
present_parameters
));
present_parameters
.
SwapEffect
=
D3DSWAPEFFECT_DISCARD
;
present_parameters
.
Windowed
=
TRUE
;
present_parameters
.
BackBufferWidth
=
0
;
present_parameters
.
BackBufferHeight
=
0
;
present_parameters
.
BackBufferFormat
=
D3DFMT_X8R8G8B8
;
hr
=
IDirect3D8_CreateDevice
(
d3d
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
window
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
&
present_parameters
,
&
device
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
!
present_parameters
.
BackBufferWidth
,
"Got unexpected BackBufferWidth %u.
\n
"
,
present_parameters
.
BackBufferWidth
);
ok
(
!
present_parameters
.
BackBufferHeight
,
"Got unexpected BackBufferHeight %u,.
\n
"
,
present_parameters
.
BackBufferHeight
);
ok
(
present_parameters
.
BackBufferFormat
==
D3DFMT_X8R8G8B8
,
"Got unexpected BackBufferFormat %#x.
\n
"
,
present_parameters
.
BackBufferFormat
);
ok
(
present_parameters
.
BackBufferCount
==
1
,
"Got unexpected BackBufferCount %u.
\n
"
,
present_parameters
.
BackBufferCount
);
ok
(
!
present_parameters
.
MultiSampleType
,
"Got unexpected MultiSampleType %u.
\n
"
,
present_parameters
.
MultiSampleType
);
ok
(
present_parameters
.
SwapEffect
==
D3DSWAPEFFECT_DISCARD
,
"Got unexpected SwapEffect %#x.
\n
"
,
present_parameters
.
SwapEffect
);
ok
(
!
present_parameters
.
hDeviceWindow
,
"Got unexpected hDeviceWindow %p.
\n
"
,
present_parameters
.
hDeviceWindow
);
ok
(
present_parameters
.
Windowed
,
"Got unexpected Windowed %#x.
\n
"
,
present_parameters
.
Windowed
);
ok
(
!
present_parameters
.
EnableAutoDepthStencil
,
"Got unexpected EnableAutoDepthStencil %#x.
\n
"
,
present_parameters
.
EnableAutoDepthStencil
);
ok
(
!
present_parameters
.
AutoDepthStencilFormat
,
"Got unexpected AutoDepthStencilFormat %#x.
\n
"
,
present_parameters
.
AutoDepthStencilFormat
);
ok
(
!
present_parameters
.
Flags
,
"Got unexpected Flags %#lx.
\n
"
,
present_parameters
.
Flags
);
ok
(
!
present_parameters
.
FullScreen_RefreshRateInHz
,
"Got unexpected FullScreen_RefreshRateInHz %u.
\n
"
,
present_parameters
.
FullScreen_RefreshRateInHz
);
ok
(
!
present_parameters
.
FullScreen_PresentationInterval
,
"Got unexpected FullScreen_PresentationInterval %#x.
\n
"
,
present_parameters
.
FullScreen_PresentationInterval
);
IDirect3DDevice8_Release
(
device
);
IDirect3D8_Release
(
d3d
);
DestroyWindow
(
window
);
}
...
...
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