From 90739d9474451f336101184610bf9c99ddd093e7 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Wed, 29 Feb 2012 17:22:32 +0100 Subject: [PATCH] wined3d: Implement resetting the device window in wined3d_device_reset(). --- dlls/wined3d/device.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 17560c6ca45..8c995336406 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -5357,7 +5357,13 @@ HRESULT CDECL wined3d_device_reset(struct wined3d_device *device, if (swapchain_desc->device_window && swapchain_desc->device_window != swapchain->desc.device_window) - FIXME("Cannot change the device window yet.\n"); + { + TRACE("Changing the device window from %p to %p.\n", + swapchain->desc.device_window, swapchain_desc->device_window); + swapchain->desc.device_window = swapchain_desc->device_window; + swapchain->device_window = swapchain_desc->device_window; + wined3d_swapchain_set_window(swapchain, NULL); + } if (swapchain_desc->enable_auto_depth_stencil && !device->auto_depth_stencil) {