Skip to content

Commit

Permalink
MADS: Implement getFrameWidth and getFrameHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Oct 24, 2015
1 parent 86722cc commit 9aeecf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/mads/assets.h
Expand Up @@ -99,8 +99,8 @@ class SpriteAsset {
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);
Expand Down

0 comments on commit 9aeecf8

Please sign in to comment.