[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.
This commit is contained in:
Joshua Ashton 2021-02-15 17:29:00 +00:00
parent df76a5252a
commit d87200c4d9
No known key found for this signature in database
GPG Key ID: C85A08669126BE8D
1 changed files with 2 additions and 4 deletions

View File

@ -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.
}
}