Commit 5e772480 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

ddraw/tests: Skip the primary palette tests if the 640x480x8 mode is not supported.

parent 6ad441cd
......@@ -4078,6 +4078,12 @@ static void test_primary_palette(void)
window = CreateWindowA("static", "ddraw_test", WS_OVERLAPPEDWINDOW,
0, 0, 640, 480, 0, 0, 0, 0);
hr = IDirectDraw_SetDisplayMode(ddraw, 640, 480, 8);
if (hr == E_NOTIMPL)
{
win_skip("8bpp display mode is not supported\n");
DestroyWindow(window);
return;
}
ok(SUCCEEDED(hr), "Failed to set display mode, hr %#x.\n", hr);
hr = IDirectDraw_SetCooperativeLevel(ddraw, window, DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN);
ok(SUCCEEDED(hr), "Failed to set cooperative level, hr %#x.\n", hr);
......
......@@ -5175,6 +5175,12 @@ static void test_primary_palette(void)
window = CreateWindowA("static", "ddraw_test", WS_OVERLAPPEDWINDOW,
0, 0, 640, 480, 0, 0, 0, 0);
hr = IDirectDraw2_SetDisplayMode(ddraw, 640, 480, 8, 0, 0);
if (hr == E_NOTIMPL)
{
win_skip("8bpp display mode is not supported\n");
DestroyWindow(window);
return;
}
ok(SUCCEEDED(hr), "Failed to set display mode, hr %#x.\n", hr);
hr = IDirectDraw2_SetCooperativeLevel(ddraw, window, DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN);
ok(SUCCEEDED(hr), "Failed to set cooperative level, hr %#x.\n", hr);
......
......@@ -5772,6 +5772,12 @@ static void test_primary_palette(void)
0, 0, 640, 480, 0, 0, 0, 0);
hr = IDirectDraw4_SetDisplayMode(ddraw, 640, 480, 8, 0, 0);
ok(SUCCEEDED(hr), "Failed to set display mode, hr %#x.\n", hr);
if (hr == E_NOTIMPL)
{
win_skip("8bpp display mode is not supported\n");
DestroyWindow(window);
return;
}
hr = IDirectDraw4_SetCooperativeLevel(ddraw, window, DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN);
ok(SUCCEEDED(hr), "Failed to set cooperative level, hr %#x.\n", hr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment