SDL/GRAPHICS: remove disableScaling() hack from scaler plugins

This commit is contained in:
Eric Culp 2012-06-07 16:03:03 -04:00 committed by Filippos Karapetis
parent 90e855d1ab
commit c8bcb3912f
7 changed files with 12 additions and 46 deletions

View file

@ -73,10 +73,6 @@ void Normal4x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPit
void NormalPlugin::scale(const uint8 *srcPtr, uint32 srcPitch,
uint8 *dstPtr, uint32 dstPitch, int width, int height, int x, int y) {
if (!_doScale) {
Normal1x(srcPtr, srcPitch, dstPtr, dstPitch, width, height);
return;
}
switch (_factor) {
case 1:
Normal1x(srcPtr, srcPitch, dstPtr, dstPitch, width, height);