aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/smackerplayer.h
diff options
context:
space:
mode:
authorjohndoe1232013-06-11 11:33:05 +0200
committerjohndoe1232013-06-11 11:33:05 +0200
commitadd321c93049e006c202c67bdb0170b8bca83833 (patch)
tree6efcb8811197b861286a2a3bea2ef9e6065bf846 /engines/neverhood/smackerplayer.h
parent19e92a09fc790dfc1da69f886b1d330a878d7e75 (diff)
downloadscummvm-rg350-add321c93049e006c202c67bdb0170b8bca83833.tar.gz
scummvm-rg350-add321c93049e006c202c67bdb0170b8bca83833.tar.bz2
scummvm-rg350-add321c93049e006c202c67bdb0170b8bca83833.zip
NEVERHOOD: Try to fix the Smacker issues inside of SmackerPlayer only (instead the numerous classes using it)
SmackerPlayer now creates a surface in the constructor and deletes it in the destructor. There will be only this surface during the lifetime of the player, so there shouldn't be any issues any more when the player is reused for different Smacker files. This is imo nicer than to remove/add the surface. I kept the several openSmacker since it wraps some code which is nice.
Diffstat (limited to 'engines/neverhood/smackerplayer.h')
-rw-r--r--engines/neverhood/smackerplayer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/neverhood/smackerplayer.h b/engines/neverhood/smackerplayer.h
index 26ebff5d33..f13b653757 100644
--- a/engines/neverhood/smackerplayer.h
+++ b/engines/neverhood/smackerplayer.h
@@ -37,6 +37,7 @@ public:
SmackerSurface(NeverhoodEngine *vm);
virtual void draw();
void setSmackerFrame(const Graphics::Surface *smackerFrame);
+ void unsetSmackerFrame();
protected:
const Graphics::Surface *_smackerFrame;
};