Stefan Dösinger stefan@codeweavers.com writes:
Version 3: Simplify the mode selection code and hardcode D3DFMT_X8R8G8B8. Retain the test for mode reset when the device was originally created with the registry size.
Version 2: Make sure the mode set with ChangeDisplaySettings is bigger than the device's mode. Otherwise Windows shrinks the window to the new mode + 12 pixels. Testing this behavior is not the purpose of this test.
Implementing this behavior is complicated because ddraw destroys and recreates swapchains in SetCooperativeLevel.
dlls/d3d9/tests/device.c | 153 ++++++++++++++++++++++++++++++++++++----------- 1 file changed, 117 insertions(+), 36 deletions(-)
It doesn't work here:
../../../tools/runtest -q -P wine -T ../../.. -M d3d9.dll -p d3d9_test.exe.so device && touch device.ok device.c:4034: Test succeeded inside todo block: Got unexpect width 1920, expected 1920. device.c:5516: Tests skipped: This GPU supports SM3, skipping unsupported shader test. device.c:5928: Tests skipped: D3DFMT_A32B32G32R32F supports filtering, skipping tests. device.c:7229: Tests skipped: Dynamic D3DFMT_YUY2 textures not supported, skipping mipmap test. device.c:7229: Tests skipped: Dynamic D3DFMT_UYVY textures not supported, skipping mipmap test. make: *** [device.ok] Error 1