Henri Verbeet : wined3d: Do not activate the window when restoring the styles.
Alexandre Julliard
julliard at winehq.org
Mon Nov 8 11:46:23 CST 2010
Module: wine
Branch: master
Commit: b898130a114f1baf24f717ab0c5f9a65030c5283
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b898130a114f1baf24f717ab0c5f9a65030c5283
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Mon Nov 8 11:50:32 2010 +0100
wined3d: Do not activate the window when restoring the styles.
This is consistent with device_setup_fullscreen_window(), and ddraw actually
has a test for this in ddrawmodes.c. (Although it doesn't actually use
device_setup_fullscreen_window() until the next patch.)
---
dlls/wined3d/device.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 7b5737d..8030bc3 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1824,7 +1824,7 @@ void device_restore_fullscreen_window(IWineD3DDeviceImpl *device, HWND window)
SetWindowLongW(window, GWL_STYLE, device->style);
SetWindowLongW(window, GWL_EXSTYLE, device->exStyle);
}
- SetWindowPos(window, 0, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER);
+ SetWindowPos(window, 0, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOACTIVATE);
device->filter_messages = filter_messages;
More information about the wine-cvs
mailing list