From ce20544a4f2b78997dadece493ea82fde1d7079f Mon Sep 17 00:00:00 2001 From: Akash Date: Sat, 25 Jun 2016 21:55:50 +0530 Subject: [PATCH] GSDX-TextureCache: Remove hacks which caused scaling issues * Ignore Frame memory offsets for calculating dimensions value of display rectangle. * Remove hack which limited scaling size based on the scissor value. Note: With the following commit, SilentHill 2 now properly outputs the desired resolution by the users on custom resolution. Previously if we set 1024 x 1024 , it'll output a lower height value which was caused by the hack removed on this commit. --- plugins/GSdx/GSTextureCache.cpp | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/plugins/GSdx/GSTextureCache.cpp b/plugins/GSdx/GSTextureCache.cpp index 3c499dc106..a8af5eee70 100644 --- a/plugins/GSdx/GSTextureCache.cpp +++ b/plugins/GSdx/GSTextureCache.cpp @@ -472,21 +472,8 @@ GSTextureCache::Target* GSTextureCache::LookupTarget(const GIFRegTEX0& TEX0, int } else // Custom resolution hack { - GSVector4i fr = m_renderer->GetFrameRect(); - - int ww = (int)(fr.left + m_renderer->GetDisplayRect().width()); - int hh = (int)(fr.top + m_renderer->GetDisplayRect().height()); - - // Gregory: I'm sure this sillyness is related to the usage of a 32bits - // buffer as a 16 bits format. In this case the height of the buffer is - // multiplyed by 2 (Hence a scissor bigger than the RT) - - // This vp2 fix doesn't work most of the time - - if(hh < 512 && m_renderer->m_context->SCISSOR.SCAY1 == 511) // vp2 - { - hh = 512; - } + int ww = m_renderer->GetDisplayRect().width(); + int hh = m_renderer->GetDisplayRect().height(); if(ww && hh) {