aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Dupont2011-01-21 22:56:22 +0000
committerSylvain Dupont2011-01-21 22:56:22 +0000
commit8cacde95e7dabb1694c911a1db087a94569da368 (patch)
tree640a64a3c048cec86d3d442d7913c187dba95671
parent9f1904d661eb9779a3d4e6ce0424742247ec4741 (diff)
downloadscummvm-rg350-8cacde95e7dabb1694c911a1db087a94569da368.tar.gz
scummvm-rg350-8cacde95e7dabb1694c911a1db087a94569da368.tar.bz2
scummvm-rg350-8cacde95e7dabb1694c911a1db087a94569da368.zip
TOON: Always reset video playback to lowRes when loading new movie
svn-id: r55398
-rw-r--r--engines/toon/movie.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/toon/movie.cpp b/engines/toon/movie.cpp
index 29d45652e4..160bf00e4d 100644
--- a/engines/toon/movie.cpp
+++ b/engines/toon/movie.cpp
@@ -41,6 +41,8 @@ void ToonstruckSmackerDecoder::handleAudioTrack(byte track, uint32 chunkSize, ui
bool ToonstruckSmackerDecoder::loadFile(const Common::String &filename, int forcedflags) {
debugC(1, kDebugMovie, "loadFile(%s, %d)", filename.c_str(), forcedflags);
+ _lowRes = false;
+
if (Graphics::SmackerDecoder::loadFile(filename)) {
if (forcedflags & 0x10 || _surface->h == 200) {
if (_surface) {
@@ -48,8 +50,7 @@ bool ToonstruckSmackerDecoder::loadFile(const Common::String &filename, int forc
delete _surface;
}
_surface = new Graphics::Surface();
- _surface->create(640, 400, 1);
- _lowRes = false;
+ _surface->create(640, 400, 1);
_header.flags = 4;
}