Add fallbacks for Simple filters when dealing with the SNES's high

resolutions.
This commit is contained in:
Brandon Wright 2010-10-28 08:01:07 -05:00
parent 4aa58f6dbd
commit 4fe52bd398
1 changed files with 23 additions and 15 deletions

View File

@ -1148,21 +1148,6 @@ get_filter_scale (int &width, int &height)
height *= 2;
break;
case FILTER_SIMPLE2X:
width *= 2;
height *= 2;
break;
case FILTER_SIMPLE3X:
width *= 3;
height *= 3;
break;
case FILTER_SIMPLE4X:
width *= 4;
height *= 4;
break;
#ifdef USE_HQ2X
case FILTER_HQ4X:
if (((width * 4) <= S9xDisplayDriver::scaled_max_width) &&
@ -1188,6 +1173,29 @@ get_filter_scale (int &width, int &height)
break;
#endif /* USE_HQ2X */
case FILTER_SIMPLE4X:
if (((width * 4) <= S9xDisplayDriver::scaled_max_width) &&
((height * 4) <= S9xDisplayDriver::scaled_max_height))
{
width *= 4;
height *= 4;
break;
}
case FILTER_SIMPLE3X:
if (width * 3 <= S9xDisplayDriver::scaled_max_width &&
height * 3 <= S9xDisplayDriver::scaled_max_height)
{
width *= 3;
height *= 3;
break;
}
case FILTER_SIMPLE2X:
width *= 2;
height *= 2;
break;
case FILTER_EPX:
width *= 2;
height *= 2;