diff options
author | Colin Snover | 2017-11-12 13:43:42 -0600 |
---|---|---|
committer | Eugene Sandulenko | 2017-11-18 22:35:12 +0100 |
commit | 88a2eaba93a454562b99bd59f797533b9f6b4848 (patch) | |
tree | fb3211337eab804ec349add0783193d42b52123f /engines/fullpipe/gfx.h | |
parent | 136223026ecb4569bbd425ed586eb7de42979c9f (diff) | |
download | scummvm-rg350-88a2eaba93a454562b99bd59f797533b9f6b4848.tar.gz scummvm-rg350-88a2eaba93a454562b99bd59f797533b9f6b4848.tar.bz2 scummvm-rg350-88a2eaba93a454562b99bd59f797533b9f6b4848.zip |
FULLPIPE: Make dimensions/coordinate getters pure functions
Diffstat (limited to 'engines/fullpipe/gfx.h')
-rw-r--r-- | engines/fullpipe/gfx.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/fullpipe/gfx.h b/engines/fullpipe/gfx.h index 13f4464167..41214eef1b 100644 --- a/engines/fullpipe/gfx.h +++ b/engines/fullpipe/gfx.h @@ -34,6 +34,8 @@ class DynamicPhase; class Movement; struct PicAniInfo; +typedef Common::Point Dims; + struct Bitmap { int _x; int _y; @@ -105,7 +107,7 @@ class Picture : public MemoryObject { byte getAlpha() { return (byte)_alpha; } void setAlpha(byte alpha) { _alpha = alpha; } - Common::Point *getDimensions(Common::Point *p); + Dims getDimensions() const { return Dims(_width, _height); } bool isPointInside(int x, int y); bool isPixelHitAtPos(int x, int y); int getPixelAtPos(int x, int y); @@ -171,7 +173,7 @@ class PictureObject : public GameObject { virtual bool load(MfcArchive &file, bool bigPicture); virtual bool load(MfcArchive &file) { assert(0); return false; } // Disable base class - Common::Point *getDimensions(Common::Point *p); + Dims getDimensions() const { return _picture->getDimensions(); } void draw(); void drawAt(int x, int y); |