aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorDenis Kasak2009-07-22 04:47:01 +0000
committerDenis Kasak2009-07-22 04:47:01 +0000
commit348cbc2b197903252202c041c96b943685dd6fb4 (patch)
tree4b0109a6b61d7ea8420b5beab1c62dec82380aab /engines
parentb3a2d186bbca722b0cc172f07222e782e79b96c1 (diff)
downloadscummvm-rg350-348cbc2b197903252202c041c96b943685dd6fb4.tar.gz
scummvm-rg350-348cbc2b197903252202c041c96b943685dd6fb4.tar.bz2
scummvm-rg350-348cbc2b197903252202c041c96b943685dd6fb4.zip
* Removed some unnecessary virtual qualifiers from methods in Drawable, Sprite and Text.
* Changed some Drawable members from uint16 to uint. * Added some const qualifiers to methods of Drawable. svn-id: r42648
Diffstat (limited to 'engines')
-rw-r--r--engines/draci/sprite.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/engines/draci/sprite.h b/engines/draci/sprite.h
index 717eebaaf0..e1086cab15 100644
--- a/engines/draci/sprite.h
+++ b/engines/draci/sprite.h
@@ -42,31 +42,31 @@ public:
virtual ~Drawable() {};
- virtual uint16 getWidth() { return _width; }
- virtual uint16 getHeight() { return _height; }
+ uint getWidth() const { return _width; }
+ uint getHeight() const { return _height; }
- virtual uint getScaledWidth() const { return _scaledWidth; }
- virtual uint getScaledHeight() const { return _scaledHeight; }
+ uint getScaledWidth() const { return _scaledWidth; }
+ uint getScaledHeight() const { return _scaledHeight; }
- virtual void setScaled(uint width, uint height) {
+ void setScaled(uint width, uint height) {
_scaledWidth = width;
_scaledHeight = height;
}
- virtual int getX() { return _x; }
- virtual int getY() { return _y; }
+ int getX() const { return _x; }
+ int getY() const { return _y; }
- virtual void setX(int x) { _x = x; }
- virtual void setY(int y) { _y = y; }
+ void setX(int x) { _x = x; }
+ void setY(int y) { _y = y; }
void setDelay(int delay) { _delay = delay; }
- int getDelay() { return _delay; }
+ int getDelay() const { return _delay; }
virtual Common::Rect getRect(bool scaled = true) const = 0;
private:
- uint16 _width; //!< Width of the sprite
- uint16 _height; //!< Height of the sprite
+ uint _width; //!< Width of the sprite
+ uint _height; //!< Height of the sprite
uint _scaledWidth; //!< Scaled width of the sprite
uint _scaledHeight; //!< Scaled height of the sprite
int _x, _y; //!< Sprite coordinates
@@ -105,7 +105,7 @@ public:
void setMirrorOn();
void setMirrorOff();
- virtual Common::Rect getRect(bool scaled = true) const;
+ Common::Rect getRect(bool scaled = true) const;
const byte *getBuffer() const { return _data; }
@@ -127,7 +127,7 @@ public:
void draw(Surface *surface, bool markDirty = true) const;
- virtual Common::Rect getRect() const;
+ Common::Rect getRect() const;
private:
byte *_text;