Commit a9fb81b2 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Only adjust windows in fullscreen mode to the screen.

parent e7b0f07c
...@@ -2337,8 +2337,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetDisplayMode(IWineD3DDevice *iface, U ...@@ -2337,8 +2337,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetDisplayMode(IWineD3DDevice *iface, U
This->ddraw_height = pMode->Height; This->ddraw_height = pMode->Height;
This->ddraw_format = pMode->Format; This->ddraw_format = pMode->Format;
/* Only do this with a window of course */ /* Only do this with a window of course, and only if we're fullscreened */
if(This->ddraw_window) if(This->ddraw_window && This->ddraw_fullscreen)
MoveWindow(This->ddraw_window, 0, 0, pMode->Width, pMode->Height, TRUE); MoveWindow(This->ddraw_window, 0, 0, pMode->Width, pMode->Height, TRUE);
/* And finally clip mouse to our screen */ /* And finally clip mouse to our screen */
......
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