summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@users.noreply.github.com>2018-06-25 15:43:37 +1000
committerGitHub <noreply@github.com>2018-06-25 15:43:37 +1000
commit2debe9e9d19bcd701558994ad496bc4301e40e34 (patch)
tree7743d87d61bf91446cf6f7aaff0d0e1985d07e9c /Source/Core/VideoCommon/RenderBase.cpp
parent86edf7f848e57bb062a1bba3a291de05b9647af1 (diff)
parent25bfee2233f21551f90e570afc1fa2dc9a5e9443 (diff)
Merge pull request #7167 from Techjar/patch-437
VideoCommon: Fix auto IR being very overzealous
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
-rw-r--r--Source/Core/VideoCommon/RenderBase.cpp2
1 files changed, 1 insertions, 1 deletions
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