From bce47e7eb68d62476fd2fcd6cc4ec1bf33618d51 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 16 May 2009 05:34:16 +0000 Subject: Add initial support for DOS non-interactive demos of The Feeble Files. svn-id: r40619 --- graphics/video/dxa_player.cpp | 2 ++ graphics/video/smk_player.cpp | 2 ++ graphics/video/video_player.h | 1 + 3 files changed, 5 insertions(+) (limited to 'graphics/video') diff --git a/graphics/video/dxa_player.cpp b/graphics/video/dxa_player.cpp index d297e58727..d7fd970e26 100644 --- a/graphics/video/dxa_player.cpp +++ b/graphics/video/dxa_player.cpp @@ -157,6 +157,8 @@ bool DXADecoder::loadFile(const char *fileName) { #endif _videoInfo.currentFrame = 0; + _videoInfo.frameOffs = _fileStream->pos(); + return true; } diff --git a/graphics/video/smk_player.cpp b/graphics/video/smk_player.cpp index 16d5c9f73d..4b5a502ec4 100644 --- a/graphics/video/smk_player.cpp +++ b/graphics/video/smk_player.cpp @@ -473,6 +473,8 @@ bool SmackerDecoder::loadFile(const char *fileName) { _palette = (byte *)malloc(3 * 256); memset(_palette, 0, 3 * 256); + _videoInfo.frameOffs = _fileStream->pos(); + return true; } diff --git a/graphics/video/video_player.h b/graphics/video/video_player.h index 2ffce6f9a9..6a49448c56 100644 --- a/graphics/video/video_player.h +++ b/graphics/video/video_player.h @@ -154,6 +154,7 @@ protected: uint32 frameCount; int32 frameRate; int32 frameDelay; + uint32 frameOffs; uint32 currentFrame; uint32 startTime; } _videoInfo; -- cgit v1.2.3