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

This commit is contained in:
Stefan Dösinger 2008-03-10 22:15:22 +01:00 committed by Alexandre Julliard
parent e7b0f07c3e
commit a9fb81b2ed
1 changed files with 2 additions and 2 deletions

View File

@ -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 */