ddraw: Use the WINED3D_SWAPCHAIN_NO_WINDOW_CHANGES flag.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e041ff1f91
commit
f90d607c67
|
@ -572,7 +572,8 @@ static HRESULT ddraw_attach_d3d_device(struct ddraw *ddraw, HWND window,
|
|||
swapchain_desc.swap_effect = WINED3D_SWAP_EFFECT_DISCARD;
|
||||
swapchain_desc.device_window = window;
|
||||
swapchain_desc.windowed = windowed;
|
||||
swapchain_desc.flags = WINED3D_SWAPCHAIN_ALLOW_MODE_SWITCH | WINED3D_SWAPCHAIN_IMPLICIT;
|
||||
swapchain_desc.flags = WINED3D_SWAPCHAIN_ALLOW_MODE_SWITCH
|
||||
| WINED3D_SWAPCHAIN_IMPLICIT | WINED3D_SWAPCHAIN_NO_WINDOW_CHANGES;
|
||||
|
||||
if (ddraw->flags & DDRAW_NO3D)
|
||||
return wined3d_swapchain_create(ddraw->wined3d_device, &swapchain_desc,
|
||||
|
|
|
@ -2509,9 +2509,9 @@ static void test_window_style(void)
|
|||
ok(SUCCEEDED(hr), "SetCooperativeLevel failed, hr %#x.\n", hr);
|
||||
|
||||
tmp = GetWindowLongA(window, GWL_STYLE);
|
||||
todo_wine ok(tmp == style, "Expected window style %#x, got %#x.\n", style, tmp);
|
||||
ok(tmp == style, "Expected window style %#x, got %#x.\n", style, tmp);
|
||||
tmp = GetWindowLongA(window, GWL_EXSTYLE);
|
||||
todo_wine ok(tmp == exstyle, "Expected window extended style %#x, got %#x.\n", exstyle, tmp);
|
||||
ok(tmp == exstyle, "Expected window extended style %#x, got %#x.\n", exstyle, tmp);
|
||||
|
||||
ShowWindow(window, SW_SHOW);
|
||||
hr = IDirectDraw_SetCooperativeLevel(ddraw, window, DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN);
|
||||
|
|
|
@ -2562,9 +2562,9 @@ static void test_window_style(void)
|
|||
ok(SUCCEEDED(hr), "SetCooperativeLevel failed, hr %#x.\n", hr);
|
||||
|
||||
tmp = GetWindowLongA(window, GWL_STYLE);
|
||||
todo_wine ok(tmp == style, "Expected window style %#x, got %#x.\n", style, tmp);
|
||||
ok(tmp == style, "Expected window style %#x, got %#x.\n", style, tmp);
|
||||
tmp = GetWindowLongA(window, GWL_EXSTYLE);
|
||||
todo_wine ok(tmp == exstyle, "Expected window extended style %#x, got %#x.\n", exstyle, tmp);
|
||||
ok(tmp == exstyle, "Expected window extended style %#x, got %#x.\n", exstyle, tmp);
|
||||
|
||||
ShowWindow(window, SW_SHOW);
|
||||
hr = IDirectDraw2_SetCooperativeLevel(ddraw, window, DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN);
|
||||
|
|
|
@ -2803,9 +2803,9 @@ static void test_window_style(void)
|
|||
ok(SUCCEEDED(hr), "SetCooperativeLevel failed, hr %#x.\n", hr);
|
||||
|
||||
tmp = GetWindowLongA(window, GWL_STYLE);
|
||||
todo_wine ok(tmp == style, "Expected window style %#x, got %#x.\n", style, tmp);
|
||||
ok(tmp == style, "Expected window style %#x, got %#x.\n", style, tmp);
|
||||
tmp = GetWindowLongA(window, GWL_EXSTYLE);
|
||||
todo_wine ok(tmp == exstyle, "Expected window extended style %#x, got %#x.\n", exstyle, tmp);
|
||||
ok(tmp == exstyle, "Expected window extended style %#x, got %#x.\n", exstyle, tmp);
|
||||
|
||||
ShowWindow(window, SW_SHOW);
|
||||
hr = IDirectDraw4_SetCooperativeLevel(ddraw, window, DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN);
|
||||
|
|
|
@ -2451,9 +2451,9 @@ static void test_window_style(void)
|
|||
ok(SUCCEEDED(hr), "SetCooperativeLevel failed, hr %#x.\n", hr);
|
||||
|
||||
tmp = GetWindowLongA(window, GWL_STYLE);
|
||||
todo_wine ok(tmp == style, "Expected window style %#x, got %#x.\n", style, tmp);
|
||||
ok(tmp == style, "Expected window style %#x, got %#x.\n", style, tmp);
|
||||
tmp = GetWindowLongA(window, GWL_EXSTYLE);
|
||||
todo_wine ok(tmp == exstyle, "Expected window extended style %#x, got %#x.\n", exstyle, tmp);
|
||||
ok(tmp == exstyle, "Expected window extended style %#x, got %#x.\n", exstyle, tmp);
|
||||
|
||||
ShowWindow(window, SW_SHOW);
|
||||
hr = IDirectDraw7_SetCooperativeLevel(ddraw, window, DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN);
|
||||
|
|
Loading…
Reference in New Issue