aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorMatthew Hoops2012-07-25 11:22:28 -0400
committerMatthew Hoops2012-07-25 11:22:28 -0400
commit57a06e383b7c3c950653a99c81c1c7fd7dcd5b1d (patch)
tree26d5770e1b8507fb0e518aba7a809f2d50b2d812 /engines/scumm
parentc0cece8d1335a3397ea980d9a2abc4075656068c (diff)
downloadscummvm-rg350-57a06e383b7c3c950653a99c81c1c7fd7dcd5b1d.tar.gz
scummvm-rg350-57a06e383b7c3c950653a99c81c1c7fd7dcd5b1d.tar.bz2
scummvm-rg350-57a06e383b7c3c950653a99c81c1c7fd7dcd5b1d.zip
VIDEO: Convert Bink to the new AdvancedVideoDecoder API
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/he/animation_he.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/scumm/he/animation_he.cpp b/engines/scumm/he/animation_he.cpp
index b37a565aab..8329511c14 100644
--- a/engines/scumm/he/animation_he.cpp
+++ b/engines/scumm/he/animation_he.cpp
@@ -40,10 +40,7 @@ MoviePlayer::MoviePlayer(ScummEngine_v90he *vm, Audio::Mixer *mixer) : _vm(vm) {
_video = new Video::BinkDecoder();
else
#endif
- {
_video = new Video::SmackerDecoder();
- ((Video::AdvancedVideoDecoder *)_video)->start();
- }
_flags = 0;
_wizResNum = 0;
@@ -64,11 +61,16 @@ int MoviePlayer::load(const char *filename, int flags, int image) {
if (_video->isVideoLoaded())
_video->close();
+ // Ensure that Bink will use our PixelFormat
+ ((Video::AdvancedVideoDecoder *)_video)->setDefaultHighColorFormat(g_system->getScreenFormat());
+
if (!_video->loadFile(filename)) {
warning("Failed to load video file %s", filename);
return -1;
}
+ ((Video::AdvancedVideoDecoder *)_video)->start();
+
debug(1, "Playing video %s", filename);
if (flags & 2)