aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/fmv/movieplayer.h
diff options
context:
space:
mode:
authorEugene Sandulenko2010-10-19 20:52:06 +0000
committerEugene Sandulenko2010-10-19 20:52:06 +0000
commitbbd95da899c496c10a4050b7b3cfd3f8dc8aa6b3 (patch)
tree53122d619c22e501328dd0cd034a08c3605a6ab3 /engines/sword25/fmv/movieplayer.h
parentd94435eebd8ab8e21a4a28a0274cae02910cb41d (diff)
downloadscummvm-rg350-bbd95da899c496c10a4050b7b3cfd3f8dc8aa6b3.tar.gz
scummvm-rg350-bbd95da899c496c10a4050b7b3cfd3f8dc8aa6b3.tar.bz2
scummvm-rg350-bbd95da899c496c10a4050b7b3cfd3f8dc8aa6b3.zip
SWORD25: Fix engine exit when running without theoradec
svn-id: r53622
Diffstat (limited to 'engines/sword25/fmv/movieplayer.h')
-rw-r--r--engines/sword25/fmv/movieplayer.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/engines/sword25/fmv/movieplayer.h b/engines/sword25/fmv/movieplayer.h
index 26b5cdd0d8..350407cea5 100644
--- a/engines/sword25/fmv/movieplayer.h
+++ b/engines/sword25/fmv/movieplayer.h
@@ -37,12 +37,14 @@
#include "common/scummsys.h" // for USE_THEORADEC
-#ifdef USE_THEORADEC
#include "sword25/kernel/common.h"
#include "sword25/kernel/service.h"
-#include "sword25/fmv/theora_decoder.h"
#include "sword25/gfx/bitmap.h"
+#ifdef USE_THEORADEC
+#include "sword25/fmv/theora_decoder.h"
+#endif
+
namespace Sword25 {
class MoviePlayer : public Service {
@@ -138,16 +140,17 @@ public:
private:
bool registerScriptBindings();
+
+#ifdef USE_THEORADEC
TheoraDecoder _decoder;
Graphics::Surface *_backSurface;
int _outX, _outY;
RenderObjectPtr<Bitmap> _outputBitmap;
+#endif
};
} // End of namespace Sword25
#endif
-
-#endif