[PATCH] wined3d: Fixes some windows to receive mouse clicks
qwerty0987654321 at mail.ru
qwerty0987654321 at mail.ru
Wed Dec 14 16:45:52 CST 2011
From: Igor Mammedov <niallain at gmail.com>
http://bugs.winehq.org/show_bug.cgi?id=25417
The application 'Black & White' does not register either left or right mouse
button clicks. The scroll wheel is responded to normally.
Regression is introduced by commit:
"7e3985e1fea60da73bae2b9465b94e5d110909fc: ddraw: Setup the device window in
SetCooperativeLevel()."
this patch is partial revert of above mentioned commit, that fixes issue.
Signed-off-by: Zdenek Behan <rain at matfyz.cz>
Signed-off-by: Pawel Drewniak <czajernia at gmail.com>
Signed-off-by: Igor Mammedov <qwerty0987654321 at mail.ru>
---
dlls/wined3d/swapchain.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c
index 39886190..d887cd9 100644
--- a/dlls/wined3d/swapchain.c
+++ b/dlls/wined3d/swapchain.c
@@ -871,6 +871,13 @@ static HRESULT swapchain_init(struct wined3d_swapchain *swapchain, WINED3DSURFTY
swapchain->win_handle = window;
swapchain->device_window = window;
+ if (!desc->windowed && window)
+ {
+ wined3d_device_setup_fullscreen_window(device,window,
+ desc->backbuffer_width,
+ desc->backbuffer_height);
+ }
+
wined3d_get_adapter_display_mode(device->wined3d, adapter->ordinal, &mode);
swapchain->orig_width = mode.width;
swapchain->orig_height = mode.height;
--
1.7.6.4
More information about the wine-patches
mailing list