diff options
author | Nipun Garg | 2019-06-23 20:08:23 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:57 +0200 |
commit | d973d258dd7909240f3b37500c1b5b99de929771 (patch) | |
tree | 6f69b09bd6284486181de1d52ecee7df317ccef1 /engines/hdb | |
parent | a23fbd7b6b089d673072324159379e59f303a1d7 (diff) | |
download | scummvm-rg350-d973d258dd7909240f3b37500c1b5b99de929771.tar.gz scummvm-rg350-d973d258dd7909240f3b37500c1b5b99de929771.tar.bz2 scummvm-rg350-d973d258dd7909240f3b37500c1b5b99de929771.zip |
HDB: Add debug output for font data
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/draw-manager.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp index bc297eed8b..474f0719b8 100644 --- a/engines/hdb/draw-manager.cpp +++ b/engines/hdb/draw-manager.cpp @@ -438,6 +438,13 @@ bool DrawMan::loadFont(const char *string) { _fontHeader.kerning = stream->readUint16LE(); _fontHeader.leading = stream->readUint16LE(); + debug(3, "Loaded _fontHeader with following data"); + debug(3, "type: %d", _fontHeader.type); + debug(3, "numChars: %d", _fontHeader.numChars); + debug(3, "height: %d", _fontHeader.height); + debug(3, "kerning: %d", _fontHeader.kerning); + debug(3, "leading: %d", _fontHeader.leading); + // Loading _charInfoBlocks & creating character surfaces CharInfo *cInfo; int startPos = stream->pos(); // Position after _fontHeader @@ -447,6 +454,9 @@ bool DrawMan::loadFont(const char *string) { cInfo = new CharInfo; cInfo->width = stream->readUint16LE(); cInfo->offset = stream->readUint16LE(); + + debug(3, "Loaded _charInfoBlocks[%d]: width: %d, offset: %d", i, cInfo->width, cInfo->offset); + curPos = stream->pos(); _fontSurfaces[i].create(cInfo->width, _fontHeader.height, g_hdb->_format); |