From 0f8128cc238db69138ea2d72a676db509f7fecf0 Mon Sep 17 00:00:00 2001 From: iFarbod Date: Mon, 26 Apr 2021 22:33:28 +0430 Subject: [PATCH] Fix width and height checks for fullscreen swapchain Height is being compared against Width somehow, this is wrong.. --- src/frontend-common/d3d11_host_display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend-common/d3d11_host_display.cpp b/src/frontend-common/d3d11_host_display.cpp index 177c05fde..1bc5c2b7b 100644 --- a/src/frontend-common/d3d11_host_display.cpp +++ b/src/frontend-common/d3d11_host_display.cpp @@ -572,7 +572,7 @@ bool D3D11HostDisplay::SetFullscreen(bool fullscreen, u32 width, u32 height, flo return false; } - if (new_mode.Width == current_desc.BufferDesc.Width && new_mode.Height == current_desc.BufferDesc.Width && + if (new_mode.Width == current_desc.BufferDesc.Width && new_mode.Height == current_desc.BufferDesc.Height && new_mode.RefreshRate.Numerator == current_desc.BufferDesc.RefreshRate.Numerator && new_mode.RefreshRate.Denominator == current_desc.BufferDesc.RefreshRate.Denominator) {