From a9fb81b2edceadc58eb84ed9e920d19719a05330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Mon, 10 Mar 2008 22:15:22 +0100 Subject: [PATCH] wined3d: Only adjust windows in fullscreen mode to the screen. --- dlls/wined3d/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 3f2d57ebb43..32f6c64feaf 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -2337,8 +2337,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetDisplayMode(IWineD3DDevice *iface, U This->ddraw_height = pMode->Height; This->ddraw_format = pMode->Format; - /* Only do this with a window of course */ - if(This->ddraw_window) + /* Only do this with a window of course, and only if we're fullscreened */ + if(This->ddraw_window && This->ddraw_fullscreen) MoveWindow(This->ddraw_window, 0, 0, pMode->Width, pMode->Height, TRUE); /* And finally clip mouse to our screen */