=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: dxgi/tests: Also test IDXGISwapChain_ResizeTarget() in fullscreen with disabled mode switch.
Alexandre Julliard
julliard at winehq.org
Wed Aug 17 10:24:23 CDT 2016
Module: wine
Branch: master
Commit: 2c67e1c9c305d95375f2c3b22d885088457a1314
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2c67e1c9c305d95375f2c3b22d885088457a1314
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Mon Aug 15 16:00:20 2016 +0200
dxgi/tests: Also test IDXGISwapChain_ResizeTarget() in fullscreen with disabled mode switch.
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dxgi/tests/device.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dlls/dxgi/tests/device.c b/dlls/dxgi/tests/device.c
index a0f5e24..a29c13c 100644
--- a/dlls/dxgi/tests/device.c
+++ b/dlls/dxgi/tests/device.c
@@ -1503,6 +1503,11 @@ static void test_fullscreen_resize_target(IDXGISwapChain *swapchain,
expected_state = *initial_state;
for (i = 0; i < min(mode_count, 20); ++i)
{
+ /* FIXME: Modes with scaling aren't fully tested. */
+ if (!(swapchain_desc.Flags & DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH)
+ && modes[i].Scaling != DXGI_MODE_SCALING_UNSPECIFIED)
+ continue;
+
hr = IDXGIOutput_GetDesc(target, &output_desc);
ok(SUCCEEDED(hr), "GetDesc failed, hr %#x.\n", hr);
@@ -1546,6 +1551,8 @@ static void test_resize_target(void)
}
tests[] =
{
+ {{ 0, 0}, TRUE, FALSE, 0},
+ {{10, 10}, TRUE, FALSE, 0},
{{ 0, 0}, TRUE, FALSE, DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH},
{{10, 10}, TRUE, FALSE, DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH},
{{ 0, 0}, FALSE, FALSE, 0},
More information about the wine-cvs
mailing list