From ef1578e736887aadf209172f48daa9eaec25b3db Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Sun, 28 Feb 2016 00:53:24 +0000 Subject: [PATCH] hw/xwin: Fix a typo in "Remove Shadow DirectDraw engine" Commit 7a22912e "Remove Shadow DirectDraw engine" contained a typo, changing the fullscreen && DirectDraw check in WM_DISPLAYCHANGE to fullscreen || DirectDraw This causes disruptive depth changes to be improperly handled Signed-off-by: Jon Turney Reviewed-by: Colin Harrison --- hw/xwin/winwndproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xwin/winwndproc.c b/hw/xwin/winwndproc.c index 6cbd44755..7236a9520 100644 --- a/hw/xwin/winwndproc.c +++ b/hw/xwin/winwndproc.c @@ -162,7 +162,7 @@ winWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) * their own mode when they become active. */ if (s_pScreenInfo->fFullScreen - || (s_pScreenInfo->dwEngine == WIN_SERVER_SHADOW_DDNL)) { + && (s_pScreenInfo->dwEngine == WIN_SERVER_SHADOW_DDNL)) { break; }