aboutsummaryrefslogtreecommitdiff
path: root/engines/director/cast.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-25 22:32:39 +0100
committerEugene Sandulenko2019-12-25 22:32:39 +0100
commit74dbb60931ca0ff59e7b63caed6178147c579d34 (patch)
treecf547ed3b47fdec2f5ed7d4254c7b7e97e8c4bb7 /engines/director/cast.cpp
parentdf3d87062e25b208d62564c27f2d3610abc7325b (diff)
downloadscummvm-rg350-74dbb60931ca0ff59e7b63caed6178147c579d34.tar.gz
scummvm-rg350-74dbb60931ca0ff59e7b63caed6178147c579d34.tar.bz2
scummvm-rg350-74dbb60931ca0ff59e7b63caed6178147c579d34.zip
DIRECTOR: More loading debug output
Diffstat (limited to 'engines/director/cast.cpp')
-rw-r--r--engines/director/cast.cpp19
1 files changed, 15 insertions, 4 deletions
diff --git a/engines/director/cast.cpp b/engines/director/cast.cpp
index 7c7604b21f..f1d49d9388 100644
--- a/engines/director/cast.cpp
+++ b/engines/director/cast.cpp
@@ -129,17 +129,20 @@ TextCast::TextCast(Common::ReadStreamEndian &stream, uint16 version) {
_palinfo2 = stream.readUint16();
_palinfo3 = stream.readUint16();
+ uint32 t;
+ uint16 pad = 0;
+
if (version == 2) {
- int t = stream.readUint16();
+ t = stream.readUint16();
if (t != 0) { // In D2 there are values
warning("TextCast: t: %x", t);
}
_initialRect = Score::readRect(stream);
- stream.readUint16();
+ pad = stream.readUint16();
} else {
- int t = stream.readUint32();
- if (t != 0) { // In D2 there are values
+ t = stream.readUint32();
+ if (t != 0) {
warning("TextCast: t: %x", t);
}
@@ -161,6 +164,14 @@ TextCast::TextCast(Common::ReadStreamEndian &stream, uint16 version) {
_fontId = stream.readByte();
_fontSize = stream.readByte();
_textSlant = 0;
+
+ debugC(2, kDebugLoading, "TextCast(): flags1: %d, border: %d gutter: %d shadow: %d type: %d align: %04x",
+ _flags1, _borderSize, _gutterSize, _boxShadow, _textType, _textAlign);
+ debugC(2, kDebugLoading, "TextCast(): rgb: 0x%04x 0x%04x 0x%04x, t: %d pad: %d shadow: %d flags: %d font: %d size: %d",
+ _palinfo1, _palinfo2, _palinfo3, t, pad, _textShadow, flags, _fontId, _fontSize);
+ if (debugChannelSet(2, kDebugLoading)) {
+ _initialRect.debugPrint(2, "TextCast(): rect:");
+ }
} else if (version == 4) {
_borderSize = static_cast<SizeType>(stream.readByte());
_gutterSize = static_cast<SizeType>(stream.readByte());