Updated Kega Fusion filtering code to return filter magnification via using rpiScaleFactor(), thus removing redundant code from previous implementation for window size scaling.

This commit is contained in:
mudlord 2007-11-19 05:45:23 +00:00
parent da2cc24435
commit 8a29d6c95f
1 changed files with 7 additions and 12 deletions

View File

@ -711,9 +711,10 @@ void VBA::updateFilter()
filterMagnification = 1;
break;
case FILTER_PLUGIN:
if (rpiInit(pluginName))
filterFunction = rpiFilter;
break;
if (rpiInit(pluginName))
filterFunction = rpiFilter;
filterMagnification = rpiScaleFactor();
break;
case FILTER_TVMODE:
filterFunction = ScanlinesTV;
filterMagnification = 2;
@ -790,9 +791,10 @@ void VBA::updateFilter()
filterFunction = NULL;
filterMagnification = 1;
break;
case FILTER_PLUGIN:
case FILTER_PLUGIN:
if (rpiInit(pluginName))
filterFunction = rpiFilter;
filterMagnification = rpiScaleFactor();
break;
case FILTER_TVMODE:
filterFunction = ScanlinesTV32;
@ -864,16 +866,9 @@ void VBA::updateFilter()
}
}
if (filterType == FILTER_PLUGIN)
{
rect.right = sizeX * rpiScaleFactor();
rect.bottom = sizeY * rpiScaleFactor();
}
else
{
rect.right = sizeX * filterMagnification;
rect.bottom = sizeY * filterMagnification;
}
if( filterType != FILTER_NONE )
memset(delta, 0xFF, sizeof(delta));