diff options
author | Matthew Hoops | 2009-10-18 18:47:53 +0000 |
---|---|---|
committer | Matthew Hoops | 2009-10-18 18:47:53 +0000 |
commit | c8853f0cc0bf9ce0423a8edbc79ba5bfd32d1a01 (patch) | |
tree | 3f5ea2460c295e2e8554ec1751484f58a34cdba6 /engines | |
parent | b7c6ae3f742216146b75191dc61bb4e30513adc2 (diff) | |
download | scummvm-rg350-c8853f0cc0bf9ce0423a8edbc79ba5bfd32d1a01.tar.gz scummvm-rg350-c8853f0cc0bf9ce0423a8edbc79ba5bfd32d1a01.tar.bz2 scummvm-rg350-c8853f0cc0bf9ce0423a8edbc79ba5bfd32d1a01.zip |
Move the SeqDecoder to the Sci namespace, it makes more sense than Graphics because it's only used in Sci.
svn-id: r45230
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/console.cpp | 2 | ||||
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 2 | ||||
-rw-r--r-- | engines/sci/seq_decoder.cpp | 4 | ||||
-rw-r--r-- | engines/sci/seq_decoder.h | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index fc49e2de22..0aefbadda6 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -216,7 +216,7 @@ void Console::postEnter() { _vm->_gamestate->_gui->hideCursor(); if (_videoFile.hasSuffix(".seq")) { - Graphics::SeqDecoder *seqDecoder = new Graphics::SeqDecoder(); + SeqDecoder *seqDecoder = new SeqDecoder(); Graphics::VideoPlayer *player = new Graphics::VideoPlayer(seqDecoder); if (seqDecoder->loadFile(_videoFile.c_str(), _videoFrameDelay)) player->playVideo(); diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index 7c3763740d..25685ee448 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -1027,7 +1027,7 @@ reg_t kShowMovie(EngineState *s, int argc, reg_t *argv) { Common::String filename = s->_segMan->getString(argv[0]); int delay = argv[1].toUint16(); // Time between frames in ticks - Graphics::SeqDecoder *seqDecoder = new Graphics::SeqDecoder(); + SeqDecoder *seqDecoder = new SeqDecoder(); Graphics::VideoPlayer *player = new Graphics::VideoPlayer(seqDecoder); if (seqDecoder->loadFile(filename.c_str(), delay)) player->playVideo(); diff --git a/engines/sci/seq_decoder.cpp b/engines/sci/seq_decoder.cpp index 634a8aeed7..b980103def 100644 --- a/engines/sci/seq_decoder.cpp +++ b/engines/sci/seq_decoder.cpp @@ -33,7 +33,7 @@ #include "sci/seq_decoder.h" -namespace Graphics { +namespace Sci { enum seqPalTypes { kSeqPalVariable = 0, @@ -238,4 +238,4 @@ bool SeqDecoder::decodeFrame(byte *rleData, int rleSize, byte *litData, int litS return true; } -} // End of namespace Graphics +} // End of namespace Sci diff --git a/engines/sci/seq_decoder.h b/engines/sci/seq_decoder.h index 30695ca0ff..7c810db05d 100644 --- a/engines/sci/seq_decoder.h +++ b/engines/sci/seq_decoder.h @@ -28,12 +28,12 @@ #include "graphics/video/video_player.h" -namespace Graphics { +namespace Sci { /** * Implementation of the Sierra SEQ decoder, used in KQ6 DOS floppy/CD and GK1 DOS */ -class SeqDecoder : public VideoDecoder { +class SeqDecoder : public Graphics::VideoDecoder { public: SeqDecoder() {} virtual ~SeqDecoder(); @@ -62,6 +62,6 @@ private: bool decodeFrame(byte *rleData, int rleSize, byte *litData, int litSize, byte *dest, int left, int width, int height, int colorKey); }; -} // End of namespace Graphics +} // End of namespace Sci #endif |