aboutsummaryrefslogtreecommitdiff
path: root/engines/director/score.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-13 13:32:47 +0100
committerEugene Sandulenko2019-12-13 13:32:47 +0100
commitfa8f76ee5bf4672578112af30e264355d5548a16 (patch)
treeb09e5e88e7884edce6c180c9f484c540b55d87c9 /engines/director/score.cpp
parent2e4708dd7f8f1bb4631b6714fddb7f3eb4d9b09a (diff)
downloadscummvm-rg350-fa8f76ee5bf4672578112af30e264355d5548a16.tar.gz
scummvm-rg350-fa8f76ee5bf4672578112af30e264355d5548a16.tar.bz2
scummvm-rg350-fa8f76ee5bf4672578112af30e264355d5548a16.zip
DIRECTOR: Improved image debug output
Diffstat (limited to 'engines/director/score.cpp')
-rw-r--r--engines/director/score.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 54a78cc6a3..3cd59b70d2 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -284,7 +284,7 @@ void Score::loadSpriteImages(bool isSharedCast) {
break;
case MKTAG('B', 'I', 'T', 'D'):
if (isSharedCast) {
- debugC(4, kDebugImages, "Shared cast BMP: id: %d", imgId);
+ debugC(4, kDebugImages, "Score::loadSpriteImages(): Shared cast BMP: id: %d", imgId);
pic = _vm->getSharedBMP()->getVal(imgId);
if (pic != NULL)
pic->seek(0); // TODO: this actually gets re-read every loop... we need to rewind it!
@@ -298,7 +298,7 @@ void Score::loadSpriteImages(bool isSharedCast) {
}
int w = bitmapCast->_initialRect.width(), h = bitmapCast->_initialRect.height();
- debugC(4, kDebugImages, "id: %d, w: %d, h: %d, flags: %x, some: %x, unk1: %d, unk2: %d",
+ debugC(4, kDebugImages, "Score::loadSpriteImages(): id: %d, w: %d, h: %d, flags: %x, some: %x, unk1: %d, unk2: %d",
imgId, w, h, bitmapCast->_flags, bitmapCast->_someFlaggyThing, bitmapCast->_unk1, bitmapCast->_unk2);
if (pic != NULL && bitmapCast != NULL && w > 0 && h > 0) {
@@ -1266,6 +1266,9 @@ Common::Rect Score::readRect(Common::ReadStreamEndian &stream) {
}
void Score::startLoop() {
+
+ debugC(1, kDebugImages, "Score dims: %dx%d", _movieRect.width(), _movieRect.height());
+
initGraphics(_movieRect.width(), _movieRect.height());
_surface->create(_movieRect.width(), _movieRect.height());
@@ -1286,7 +1289,6 @@ void Score::startLoop() {
_frames[_currentFrame]->prepareFrame(this);
while (!_stopPlay && _currentFrame < _frames.size()) {
- debugC(1, kDebugImages, "****************************** Current frame: %d", _currentFrame + 1);
update();
if (_currentFrame < _frames.size())
@@ -1303,6 +1305,8 @@ void Score::update() {
return;
}
+ debugC(1, kDebugImages, "****************************** Current frame: %d", _currentFrame + 1);
+
_surface->clear();
_surface->copyFrom(*_trailSurface);