aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/animation.h
diff options
context:
space:
mode:
authorRobert Špalek2009-10-30 01:56:52 +0000
committerRobert Špalek2009-10-30 01:56:52 +0000
commitd662c4aa20342e74ed5d82a14e3fc8e62a45ca8c (patch)
treef75bfb0465e398fac23955f526207ee9b50fec13 /engines/draci/animation.h
parentc778efaca5b9d20f73e9d12cc8404d8948f8e522 (diff)
downloadscummvm-rg350-d662c4aa20342e74ed5d82a14e3fc8e62a45ca8c.tar.gz
scummvm-rg350-d662c4aa20342e74ed5d82a14e3fc8e62a45ca8c.tar.bz2
scummvm-rg350-d662c4aa20342e74ed5d82a14e3fc8e62a45ca8c.zip
Remove the last 2 default parameter values.
They usually just add unnecessary confusion and this is definitely such an example. Removal will clarify the code. svn-id: r45512
Diffstat (limited to 'engines/draci/animation.h')
-rw-r--r--engines/draci/animation.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/engines/draci/animation.h b/engines/draci/animation.h
index a0cf43efb8..c0d536f2a2 100644
--- a/engines/draci/animation.h
+++ b/engines/draci/animation.h
@@ -47,12 +47,6 @@ enum {
};
/**
- * Default argument to Animation::getFrame() that makes it return
- * the current frame instead of the user specifying it.
- */
-enum { kCurrentFrame = -1 };
-
-/**
* Used by overlays as a neutral index that won't get
* released with the GPL Release command.
*/
@@ -74,11 +68,12 @@ public:
void setID(int id);
int getID() const;
- void nextFrame(bool force = false);
+ void nextFrame(bool force);
void drawFrame(Surface *surface);
void addFrame(Drawable *frame, const SoundSample *sample);
- Drawable *getFrame(int frameNum = kCurrentFrame);
+ Drawable *getCurrentFrame();
+ Drawable *getFrame(int frameNum);
void setCurrentFrame(uint frame);
uint currentFrameNum() const;
uint getFrameCount() const;