From d87200c4d993c7645ec7aff7810a8bb6047be235 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Mon, 15 Feb 2021 17:29:00 +0000 Subject: [PATCH] [d3d9] Don't minimise in WM_ACTIVATEAPP Sometimes mode-setting jank can occur and technically we'd need to re-set the mode on the next present if the game gets actually minimised. --- src/d3d9/d3d9_swapchain.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/d3d9/d3d9_swapchain.cpp b/src/d3d9/d3d9_swapchain.cpp index c0ea5298..cc9adec2 100644 --- a/src/d3d9/d3d9_swapchain.cpp +++ b/src/d3d9/d3d9_swapchain.cpp @@ -141,10 +141,8 @@ namespace dxvk { SetWindowPos(window, nullptr, rect.left, rect.top, params.BackBufferWidth, params.BackBufferHeight, SWP_NOACTIVATE | SWP_NOZORDER); } - else { - if (IsWindowVisible(window)) - ShowWindow(window, SW_MINIMIZE); - } + // Don't minimise if !wparam + // We'd need to re-set the mode here technically, if we did. } }