aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/console.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2010-12-22 13:51:35 +0000
committerFilippos Karapetis2010-12-22 13:51:35 +0000
commit430dc10c4944922894e32d1b29852794c9f27b7b (patch)
tree453c0baa131529aa341edf71db48a64d6a2c8742 /engines/sci/console.cpp
parent5a3ed29a4be47cca6d0ab34b26a228317f15d817 (diff)
downloadscummvm-rg350-430dc10c4944922894e32d1b29852794c9f27b7b.tar.gz
scummvm-rg350-430dc10c4944922894e32d1b29852794c9f27b7b.tar.bz2
scummvm-rg350-430dc10c4944922894e32d1b29852794c9f27b7b.zip
SCI: VMD video related changes
- VMD videos are now properly started from the associated play subop of the kPlayVMD kernel call, and are now properly positioned on screen, and doubled only if the games require them to be - Added an enum for VMD video flags svn-id: r55003
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r--engines/sci/console.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp
index 21364319b8..cad6092cff 100644
--- a/engines/sci/console.cpp
+++ b/engines/sci/console.cpp
@@ -226,7 +226,7 @@ void Console::preEnter() {
_engine->pauseEngine(true);
}
-extern void playVideo(Graphics::VideoDecoder *videoDecoder);
+extern void playVideo(Graphics::VideoDecoder *videoDecoder, VideoState videoState);
void Console::postEnter() {
if (!_videoFile.empty()) {
@@ -272,7 +272,10 @@ void Console::postEnter() {
}
#endif
- playVideo(videoDecoder);
+ VideoState emptyState;
+ emptyState.fileName = _videoFile;
+ emptyState.flags = kDoubled; // always allow the videos to be double sized
+ playVideo(videoDecoder, emptyState);
#ifdef ENABLE_SCI32
// Switch back to 8bpp if we played a duck video