From ebb6e3419697461f0c952dabaa34afded719d59c Mon Sep 17 00:00:00 2001 From: Akash Date: Wed, 20 Jan 2016 00:30:19 +0530 Subject: [PATCH] PCRTC: Fix video modes higher than 480P --- plugins/GSdx/GSState.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/plugins/GSdx/GSState.cpp b/plugins/GSdx/GSState.cpp index 5abd33925b..cce4c357fc 100644 --- a/plugins/GSdx/GSState.cpp +++ b/plugins/GSdx/GSState.cpp @@ -349,22 +349,21 @@ void GSState::ResetHandlers() GSVector4i GSState::GetDisplayRect(int i) { if(i < 0) i = IsEnabled(1) ? 1 : 0; - int height = m_regs->DISP[i].DISPLAY.DH + 1; - int width = m_regs->DISP[i].DISPLAY.DW + 1; + int height = (m_regs->DISP[i].DISPLAY.DH + 1) / (m_regs->DISP[i].DISPLAY.MAGV + 1); + int width = (m_regs->DISP[i].DISPLAY.DW + 1) / (m_regs->DISP[i].DISPLAY.MAGH + 1); GSVector4i r; //Some games (such as Pool Paradise) use alternate line reading and provide a massive height which is really half. - if (height > 640) + if (height > 640 && m_regs->SMODE1.CMOD!=0) // Vmode's other than NTSC/PAL need height value over 640. { height /= 2; } - r.left = m_regs->DISP[i].DISPLAY.DX / (m_regs->DISP[i].DISPLAY.MAGH + 1); r.top = m_regs->DISP[i].DISPLAY.DY / (m_regs->DISP[i].DISPLAY.MAGV + 1); - r.right = r.left + width / (m_regs->DISP[i].DISPLAY.MAGH + 1); - r.bottom = r.top + height / (m_regs->DISP[i].DISPLAY.MAGV + 1); - + r.right = r.left + width; + r.bottom = r.top + height; + return r; }