mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-15 08:49:20 +01:00
VideoCommon: Fix auto IR being very overzealous
This commit is contained in:
parent
2cfdf89898
commit
25bfee2233
@ -146,7 +146,7 @@ bool Renderer::CalculateTargetSize()
|
|||||||
{
|
{
|
||||||
// Set a scale based on the window size
|
// Set a scale based on the window size
|
||||||
int width = EFB_WIDTH * m_target_rectangle.GetWidth() / m_last_xfb_width;
|
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);
|
m_efb_scale = std::max((width - 1) / EFB_WIDTH + 1, (height - 1) / EFB_HEIGHT + 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user