GRAPHICS: Add a default implementation for ScalerPluginObject::getFactor.

This commit is contained in:
Johannes Schickel 2012-09-24 03:23:36 +02:00 committed by Filippos Karapetis
parent 23bee4de30
commit 5420a7f6bd
9 changed files with 1 additions and 11 deletions

View File

@ -30,7 +30,6 @@ public:
virtual void initialize(const Graphics::PixelFormat &format);
virtual uint increaseFactor();
virtual uint decreaseFactor();
virtual uint getFactor() const { return _factor; }
virtual bool canDrawCursor() const { return false; }
virtual uint extraPixels() const { return 0; }
virtual const char *getName() const;

View File

@ -31,7 +31,6 @@ public:
virtual void initialize(const Graphics::PixelFormat &format);
virtual uint increaseFactor();
virtual uint decreaseFactor();
virtual uint getFactor() const { return _factor; }
virtual bool canDrawCursor() const { return false; }
virtual bool useOldSource() const { return true; }
virtual uint extraPixels() const { return 1; }

View File

@ -31,7 +31,6 @@ public:
virtual void deinitialize();
virtual uint increaseFactor();
virtual uint decreaseFactor();
virtual uint getFactor() const { return _factor; }
virtual bool canDrawCursor() const { return false; }
virtual uint extraPixels() const { return 1; }
virtual const char *getName() const;

View File

@ -29,7 +29,6 @@ public:
NormalPlugin();
virtual uint increaseFactor();
virtual uint decreaseFactor();
virtual uint getFactor() const { return _factor; }
virtual bool canDrawCursor() const { return true; }
virtual uint extraPixels() const { return 0; }
virtual const char *getName() const;

View File

@ -31,7 +31,6 @@ public:
uint8 *dstPtr, uint32 dstPitch, int width, int height, int x, int y);
virtual uint increaseFactor();
virtual uint decreaseFactor();
virtual uint getFactor() const { return _factor; }
virtual bool canDrawCursor() const { return false; }
virtual uint extraPixels() const { return 1; }
virtual const char *getName() const;

View File

@ -29,7 +29,6 @@ public:
SAIPlugin();
virtual uint increaseFactor();
virtual uint decreaseFactor();
virtual uint getFactor() const { return _factor; }
virtual bool canDrawCursor() const { return false; }
virtual uint extraPixels() const { return 2; }
virtual const char *getName() const;
@ -44,7 +43,6 @@ public:
SuperSAIPlugin();
virtual uint increaseFactor();
virtual uint decreaseFactor();
virtual uint getFactor() const { return _factor; }
virtual bool canDrawCursor() const { return false; }
virtual uint extraPixels() const { return 2; }
virtual const char *getName() const;
@ -59,7 +57,6 @@ public:
SuperEaglePlugin();
virtual uint increaseFactor();
virtual uint decreaseFactor();
virtual uint getFactor() const { return _factor; }
virtual bool canDrawCursor() const { return false; }
virtual uint extraPixels() const { return 2; }
virtual const char *getName() const;

View File

@ -48,7 +48,6 @@ public:
uint8 *dstPtr, uint32 dstPitch, int width, int height, int x, int y);
virtual uint increaseFactor();
virtual uint decreaseFactor();
virtual uint getFactor() const { return _factor; }
virtual bool canDrawCursor() const { return true; }
virtual uint extraPixels() const { return 2; }
virtual const char *getName() const;

View File

@ -29,7 +29,6 @@ public:
TVPlugin();
virtual uint increaseFactor();
virtual uint decreaseFactor();
virtual uint getFactor() const { return _factor; }
virtual bool canDrawCursor() const { return false; }
virtual uint extraPixels() const { return 0; }
virtual const char *getName() const;

View File

@ -70,7 +70,7 @@ public:
*/
virtual uint decreaseFactor() = 0;
virtual uint getFactor() const = 0;
virtual uint getFactor() const { return _factor; }
virtual const Common::Array<uint> &getFactors() const { return _factors; }