[PATCH 2/5] wined3d: Fix window rect restoring.
Józef Kucia
jkucia at codeweavers.com
Thu Aug 4 10:23:41 CDT 2016
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
dlls/wined3d/device.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 9a4f0d3..1bafd5e 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -954,7 +954,8 @@ void CDECL wined3d_device_restore_fullscreen_window(struct wined3d_device *devic
rect = *window_rect;
else
window_pos_flags |= (SWP_NOMOVE | SWP_NOSIZE);
- SetWindowPos(window, 0, rect.left, rect.top, rect.right, rect.bottom, window_pos_flags);
+ SetWindowPos(window, 0, rect.left, rect.top,
+ rect.right - rect.left, rect.bottom - rect.top, window_pos_flags);
device->filter_messages = filter_messages;
--
2.7.3
More information about the wine-patches
mailing list