Stefan Dösinger : wined3d: Only adjust windows in fullscreen mode to the screen.
Alexandre Julliard
julliard at winehq.org
Tue Mar 11 10:51:44 CDT 2008
Module: wine
Branch: master
Commit: a9fb81b2edceadc58eb84ed9e920d19719a05330
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a9fb81b2edceadc58eb84ed9e920d19719a05330
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Mon Mar 10 22:15:22 2008 +0100
wined3d: Only adjust windows in fullscreen mode to the screen.
---
dlls/wined3d/device.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 3f2d57e..32f6c64 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 */
More information about the wine-cvs
mailing list