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

@ -22,18 +22,6 @@
#include "graphics/scalerplugin.h"
#include "graphics/scaler.h"
ScalerPluginObject::ScalerPluginObject() {
_doScale = true;
}
void ScalerPluginObject::disableScaling() {
_doScale = false;
}
void ScalerPluginObject::enableScaling() {
_doScale = true;
}
void ScalerPluginObject::scale1x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr,
uint32 dstPitch, int width, int height, int bytesPerPixel) {
assert(bytesPerPixel == 2); // TODO add support for 4 bytes