summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.cpp
diff options
context:
space:
mode:
authorTechjar <tecknojar@gmail.com>2018-06-25 00:48:57 -0400
committerTechjar <tecknojar@gmail.com>2018-06-25 00:48:57 -0400
commit25bfee2233f21551f90e570afc1fa2dc9a5e9443 (patch)
treeb1f66847c0dde38ec03f9a0aa3c0d0dec5766041 /Source/Core/VideoCommon/RenderBase.cpp
parent2cfdf89898c4689884fbffb1c693ec24a7083f66 (diff)
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