From 6cbc133619e7ab5b9aefc16e2894316723364011 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Fri, 4 May 2018 17:53:02 +0200 Subject: [PATCH] [dxgi] Use ShowWindow instead of redundant SetWindowPos call --- src/dxgi/dxgi_swapchain.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/dxgi/dxgi_swapchain.cpp b/src/dxgi/dxgi_swapchain.cpp index 00793b7d..5b95bf97 100644 --- a/src/dxgi/dxgi_swapchain.cpp +++ b/src/dxgi/dxgi_swapchain.cpp @@ -506,10 +506,9 @@ namespace dxvk { rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, SWP_FRAMECHANGED | SWP_NOZORDER | SWP_NOACTIVATE); - // For some reason we have to call SetWindowPos again, or - // otherwise the window size is not going to be applied. - ::SetWindowPos(m_desc.OutputWindow, 0, 0, 0, 0, 0, - SWP_NOSENDCHANGING | SWP_FRAMECHANGED | SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE); + // We have to call this in order to actually + // apply the window size and properties + ::ShowWindow(m_desc.OutputWindow, SW_SHOW); return SetDefaultGammaControl(); }