aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/voyeur/animation.cpp4
-rw-r--r--engines/voyeur/animation.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/engines/voyeur/animation.cpp b/engines/voyeur/animation.cpp
index 0fce36d54b..2f8c71bf68 100644
--- a/engines/voyeur/animation.cpp
+++ b/engines/voyeur/animation.cpp
@@ -115,6 +115,7 @@ void RL2Decoder::RL2FileHeader::load(Common::SeekableReadStream *stream) {
_form = stream->readUint32LE();
_backSize = stream->readUint32LE();
_signature = stream->readUint32LE();
+ _isRLV3 = !strncmp((const char *)&_signature, "RLV3", 4);
if (!isValid())
return;
@@ -163,8 +164,9 @@ RL2Decoder::RL2VideoTrack::RL2VideoTrack(const RL2FileHeader &header, RL2AudioTr
_surface = new Graphics::Surface();
_surface->create(320, 200, Graphics::PixelFormat::createFormatCLUT8());
+ _hasBackFrame = header._backSize != 0 && !header._isRLV3;
+
_backSurface = NULL;
- _hasBackFrame = header._backSize != 0 && strncmp((char *)&header._signature, "RLV3", 4);
if (_hasBackFrame)
initBackSurface();
diff --git a/engines/voyeur/animation.h b/engines/voyeur/animation.h
index bb3f34a461..60d4830cf1 100644
--- a/engines/voyeur/animation.h
+++ b/engines/voyeur/animation.h
@@ -58,6 +58,7 @@ private:
uint32 *_frameOffsets;
int *_frameSoundSizes;
+ bool _isRLV3;
public:
RL2FileHeader();
~RL2FileHeader();