Gave up on the smart m_width / m_height adjustments for now. This just won't work the way I imagined it :/
Using a "common" size of 640*512 instead. This means some odd games might use a wrong output surface again (they always did this on the normal upscaler).


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2190 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
ramapcsx2 2009-11-12 09:50:05 +00:00
parent 01231c1fa5
commit 4ac00ea969
1 changed files with 0 additions and 42 deletions

View File

@ -496,27 +496,6 @@ protected:
// TRACE(_T("[%d] GetOutput %d %05x (%d)\n"), (int)m_perfmon.GetFrame(), i, (int)TEX0.TBP0, (int)TEX0.PSM); // TRACE(_T("[%d] GetOutput %d %05x (%d)\n"), (int)m_perfmon.GetFrame(), i, (int)TEX0.TBP0, (int)TEX0.PSM);
//This routine ups m_width and m_height globally, should games have a bigger native res than the startup values
//(currently 640*512, because of some unknown yet problem with smaller sizes)
int multiplier = upscale_Multiplier();
if (multiplier > 1)
{
int testh = GetDisplayRect().height() * multiplier;
//on startup testh and testw are 1 for a while (invalid)
if ((testh > m_height) && testh != 1) {
m_height=testh;
//printf("changed height > %d\n", m_height );
}
else if (testh == 1)return NULL;
int testw = GetDisplayRect().width() * multiplier;
if ((testw > m_width) && testw != 1 ) {
m_width=testw;
//printf("changed width > %d\n", m_width );
}
else if (testw == 1)return NULL;
}
GSTexture* t = NULL; GSTexture* t = NULL;
if(GSTextureCache::Target* rt = m_tc->LookupTarget(TEX0, m_width, m_height)) if(GSTextureCache::Target* rt = m_tc->LookupTarget(TEX0, m_width, m_height))
@ -555,27 +534,6 @@ protected:
{ {
if(IsBadFrame(m_skip, m_gamefix_skipdraw)) return; if(IsBadFrame(m_skip, m_gamefix_skipdraw)) return;
//This routine ups m_width and m_height globally, should games have a bigger native res than the startup values
//(currently 640*512, because of some unknown yet problem with smaller sizes)
int multiplier = upscale_Multiplier();
if (multiplier > 1)
{
int testh = GetDisplayRect().height() * multiplier;
//on startup testh and testw are 1 for a while (invalid)
if ((testh > m_height) && testh != 1) {
m_height=testh;
//printf("changed height > %d\n", m_height );
}
else if (testh == 1)return;
int testw = GetDisplayRect().width() * multiplier;
if ((testw > m_width) && testw != 1 ) {
m_width=testw;
//printf("changed width > %d\n", m_width );
}
else if (testw == 1)return;
}
GSDrawingEnvironment& env = m_env; GSDrawingEnvironment& env = m_env;
GSDrawingContext* context = m_context; GSDrawingContext* context = m_context;