diff options
author | Travis Howell | 2006-06-06 04:33:09 +0000 |
---|---|---|
committer | Travis Howell | 2006-06-06 04:33:09 +0000 |
commit | 04d8cef84806cfff376292e237f706de87396c6b (patch) | |
tree | 848adb54946752aaf38111f173a9489a7767d7f6 /engines/scumm | |
parent | ca79b6c2856a5f6432068e54f14c77021a751987 (diff) | |
download | scummvm-rg350-04d8cef84806cfff376292e237f706de87396c6b.tar.gz scummvm-rg350-04d8cef84806cfff376292e237f706de87396c6b.tar.bz2 scummvm-rg350-04d8cef84806cfff376292e237f706de87396c6b.zip |
Minor cleanup
svn-id: r22950
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/he/animation_he.cpp | 23 | ||||
-rw-r--r-- | engines/scumm/he/script_v90he.cpp | 5 |
2 files changed, 10 insertions, 18 deletions
diff --git a/engines/scumm/he/animation_he.cpp b/engines/scumm/he/animation_he.cpp index f1f78d6d78..327cde6d87 100644 --- a/engines/scumm/he/animation_he.cpp +++ b/engines/scumm/he/animation_he.cpp @@ -23,8 +23,6 @@ #include "common/stdafx.h" -#include "common/rect.h" - #include "scumm/he/animation_he.h" #include "scumm/he/intern_he.h" @@ -87,7 +85,7 @@ int MoviePlayer::getImageNum() { } int MoviePlayer::load(const char *filename, int flags, int image) { - char filename2[100]; + char videoName[100]; uint32 tag; int32 frameRate; @@ -96,17 +94,17 @@ int MoviePlayer::load(const char *filename, int flags, int image) { } // Change file extension to dxa - strcpy(filename2, filename); - int len = strlen(filename2) - 3; - filename2[len++] = 'd'; - filename2[len++] = 'x'; - filename2[len++] = 'a'; + strcpy(videoName, filename); + int len = strlen(videoName) - 3; + videoName[len++] = 'd'; + videoName[len++] = 'x'; + videoName[len++] = 'a'; - if (_fd.open(filename2) == false) { - warning("Failed to load video file %s", filename2); + if (_fd.open(videoName) == false) { + warning("Failed to load video file %s", videoName); return -1; } - debug(0, "Playing video %s", filename2); + debug(1, "Playing video %s", videoName); tag = _fd.readUint32BE(); assert(tag == MKID_BE('DEXA')); @@ -133,8 +131,6 @@ int MoviePlayer::load(const char *filename, int flags, int image) { // Skip sound tag _fd.readUint32BE(); - debug(0, "frames_count %d width %d height %d rate %d ticks %d", _framesCount, _width, _height, _framesPerSec, _frameTicks); - _frameSize = _width * _height; _frameBuffer1 = (uint8 *)malloc(_frameSize); _frameBuffer2 = (uint8 *)malloc(_frameSize); @@ -249,7 +245,6 @@ void MoviePlayer::decodeFrame() { if (tag == MKID_BE('FRAM')) { uint8 type = _fd.readByte(); uint32 size = _fd.readUint32BE(); - debug(0, "frame %d type %d size %d", _frameNum, type, size); _fd.read(_frameBuffer2, size); diff --git a/engines/scumm/he/script_v90he.cpp b/engines/scumm/he/script_v90he.cpp index a6433e4100..eae252098d 100644 --- a/engines/scumm/he/script_v90he.cpp +++ b/engines/scumm/he/script_v90he.cpp @@ -516,7 +516,6 @@ void ScummEngine_v90he::o90_videoOps() { int status = fetchScriptByte(); int subOp = status - 49; - debug(0, "o90_videoOps stub (%d)", subOp); switch (subOp) { case 0: copyScriptString(_videoParams.filename, sizeof(_videoParams.filename)); @@ -565,7 +564,6 @@ void ScummEngine_v90he::o90_getVideoData() { byte subOp = fetchScriptByte(); subOp -= 32; - debug(0, "o90_getVideoData stub (%d)", subOp); switch (subOp) { case 0: // Get width pop(); @@ -588,8 +586,7 @@ void ScummEngine_v90he::o90_getVideoData() { push(_moviePlay->getImageNum()); break; case 107: // Get statistics - pop(); - pop(); + debug(0, "o90_getVideoData: subOp 107 stub (%d, %d)", pop(), pop()); push(0); break; default: |