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:
parent
da2cc24435
commit
8a29d6c95f
|
@ -711,9 +711,10 @@ void VBA::updateFilter()
|
||||||
filterMagnification = 1;
|
filterMagnification = 1;
|
||||||
break;
|
break;
|
||||||
case FILTER_PLUGIN:
|
case FILTER_PLUGIN:
|
||||||
if (rpiInit(pluginName))
|
if (rpiInit(pluginName))
|
||||||
filterFunction = rpiFilter;
|
filterFunction = rpiFilter;
|
||||||
break;
|
filterMagnification = rpiScaleFactor();
|
||||||
|
break;
|
||||||
case FILTER_TVMODE:
|
case FILTER_TVMODE:
|
||||||
filterFunction = ScanlinesTV;
|
filterFunction = ScanlinesTV;
|
||||||
filterMagnification = 2;
|
filterMagnification = 2;
|
||||||
|
@ -790,9 +791,10 @@ void VBA::updateFilter()
|
||||||
filterFunction = NULL;
|
filterFunction = NULL;
|
||||||
filterMagnification = 1;
|
filterMagnification = 1;
|
||||||
break;
|
break;
|
||||||
case FILTER_PLUGIN:
|
case FILTER_PLUGIN:
|
||||||
if (rpiInit(pluginName))
|
if (rpiInit(pluginName))
|
||||||
filterFunction = rpiFilter;
|
filterFunction = rpiFilter;
|
||||||
|
filterMagnification = rpiScaleFactor();
|
||||||
break;
|
break;
|
||||||
case FILTER_TVMODE:
|
case FILTER_TVMODE:
|
||||||
filterFunction = ScanlinesTV32;
|
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.right = sizeX * filterMagnification;
|
||||||
rect.bottom = sizeY * filterMagnification;
|
rect.bottom = sizeY * filterMagnification;
|
||||||
}
|
|
||||||
|
|
||||||
if( filterType != FILTER_NONE )
|
if( filterType != FILTER_NONE )
|
||||||
memset(delta, 0xFF, sizeof(delta));
|
memset(delta, 0xFF, sizeof(delta));
|
||||||
|
|
Loading…
Reference in New Issue