diff options
author | Strangerke | 2015-10-24 23:21:08 +0200 |
---|---|---|
committer | Strangerke | 2015-10-24 23:21:08 +0200 |
commit | 9aeecf83a3fb4a943974149cde5d075a4b1d3ce5 (patch) | |
tree | 1a8bb527c9513e7572a4b3f477ce7e2a4ae7a80c | |
parent | 86722cc41f17608cd0272496e01239684bc2899f (diff) | |
download | scummvm-rg350-9aeecf83a3fb4a943974149cde5d075a4b1d3ce5.tar.gz scummvm-rg350-9aeecf83a3fb4a943974149cde5d075a4b1d3ce5.tar.bz2 scummvm-rg350-9aeecf83a3fb4a943974149cde5d075a4b1d3ce5.zip |
MADS: Implement getFrameWidth and getFrameHeight
-rw-r--r-- | engines/mads/assets.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/assets.h b/engines/mads/assets.h index 8a0dc2cd44..aa7e188fba 100644 --- a/engines/mads/assets.h +++ b/engines/mads/assets.h @@ -99,8 +99,8 @@ public: int getCount() { return _frameCount; } int getFrameRate() const { return _frameRate; } int getPixelSpeed() const { return _pixelSpeed; } - int getFrameWidth(int index); - int getFrameHeight(int index); + int getFrameWidth(int index) { assert (index < _frameCount); return _frames[index]._bounds.width(); } + int getFrameHeight(int index) { assert (index < _frameCount); return _frames[index]._bounds.height(); } int getMaxFrameWidth() const { return _maxWidth; } int getMaxFrameHeight() const { return _maxHeight; } MSprite *getFrame(int frameIndex); |