=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: wined3d: Show the device window when changing fullscreen resolutions.
Alexandre Julliard
julliard at winehq.org
Fri Dec 1 14:08:18 CST 2017
Module: wine
Branch: master
Commit: 04d4584deadbd4dd7627be46f7447a6d4b087f8d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=04d4584deadbd4dd7627be46f7447a6d4b087f8d
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Wed Nov 15 23:21:16 2017 +0100
wined3d: Show the device window when changing fullscreen resolutions.
World of Warplanes calls SetWindowLong(window, GWL_STYLE, WS_POPUP)
before calling reset, effectively hiding the window. It does not call
SetWindowPos(SWP_FRAMECHANGED), so the effect isn't visible and the
game displays fine after the reset. However, after the next mouse
click WINPOS_WindowFromPoint skips the window because it doesn't have
WS_VISIBLE and returns the desktop window. This in turn triggers a
focus loss and d3d9 minimizes the game.
Signed-off-by: Stefan Dösinger <stefan at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3d9/tests/d3d9ex.c | 118 +++++++++++++++++++++++++++++++++++++++++++--
dlls/d3d9/tests/device.c | 121 +++++++++++++++++++++++++++++++++++++++++++++--
dlls/wined3d/swapchain.c | 1 +
3 files changed, 232 insertions(+), 8 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=04d4584deadbd4dd7627be46f7447a6d4b087f8d
More information about the wine-cvs
mailing list