From 5f9df1f6e30e76d6e1d3d9573023c40e07fdca6e Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 21 Aug 2022 18:32:45 +0000 Subject: [PATCH] [d3d9] Remove leftover GetWindowRect This is already done for us. --- src/d3d9/d3d9_swapchain.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/d3d9/d3d9_swapchain.cpp b/src/d3d9/d3d9_swapchain.cpp index 03ac6e484..cbe47431a 100644 --- a/src/d3d9/d3d9_swapchain.cpp +++ b/src/d3d9/d3d9_swapchain.cpp @@ -1019,9 +1019,6 @@ namespace dxvk { HRESULT D3D9SwapChainEx::EnterFullscreenMode( D3DPRESENT_PARAMETERS* pPresentParams, const D3DDISPLAYMODEEX* pFullscreenDisplayMode) { - // Find a display mode that matches what we need - ::GetWindowRect(m_window, &m_windowState.rect); - if (FAILED(ChangeDisplayMode(pPresentParams, pFullscreenDisplayMode))) { Logger::err("D3D9: EnterFullscreenMode: Failed to change display mode"); return D3DERR_INVALIDCALL;