From 25bfee2233f21551f90e570afc1fa2dc9a5e9443 Mon Sep 17 00:00:00 2001 From: Techjar Date: Mon, 25 Jun 2018 00:48:57 -0400 Subject: [PATCH] VideoCommon: Fix auto IR being very overzealous --- Source/Core/VideoCommon/RenderBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index 98addff6b2..25730f98f4 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -146,7 +146,7 @@ bool Renderer::CalculateTargetSize() { // Set a scale based on the window size int width = EFB_WIDTH * m_target_rectangle.GetWidth() / m_last_xfb_width; - int height = EFB_HEIGHT * m_target_rectangle.GetWidth() / m_last_xfb_height; + int height = EFB_HEIGHT * m_target_rectangle.GetHeight() / m_last_xfb_height; m_efb_scale = std::max((width - 1) / EFB_WIDTH + 1, (height - 1) / EFB_HEIGHT + 1); } else