diff options
author | Eugene Sandulenko | 2016-10-18 11:31:28 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-10-18 11:50:12 +0200 |
commit | 6ef67b9186535f8058dabfbbd181ad3ad032e079 (patch) | |
tree | 2bae7cf4c9f2c6d413992adb5899d634211d22f3 /engines/director/frame.cpp | |
parent | e19cb159430d4672c16865263c729a689e9e98cf (diff) | |
download | scummvm-rg350-6ef67b9186535f8058dabfbbd181ad3ad032e079.tar.gz scummvm-rg350-6ef67b9186535f8058dabfbbd181ad3ad032e079.tar.bz2 scummvm-rg350-6ef67b9186535f8058dabfbbd181ad3ad032e079.zip |
DIRECTOR: Further work on text cast loading and rendering
Diffstat (limited to 'engines/director/frame.cpp')
-rw-r--r-- | engines/director/frame.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/director/frame.cpp b/engines/director/frame.cpp index 53b7502779..0ce7f2be9b 100644 --- a/engines/director/frame.cpp +++ b/engines/director/frame.cpp @@ -599,7 +599,9 @@ void Frame::renderText(Graphics::ManagedSurface &surface, uint16 spriteID) { text += ch; } - debugC(3, kDebugText, "renderText: unk1: %d strLen: %d dataLen: %d textlen: %d", unk1, strLen, dataLen, text.size()); + debugC(3, kDebugText, "renderText: unk1: %d strLen: %d dataLen: %d textlen: %u", unk1, strLen, dataLen, text.size()); + if (strLen < 200) + debugC(3, kDebugText, "text: '%s'", text.c_str()); uint32 rectLeft = static_cast<TextCast *>(_sprites[spriteID]->_cast)->initialRect.left; uint32 rectTop = static_cast<TextCast *>(_sprites[spriteID]->_cast)->initialRect.top; @@ -618,6 +620,8 @@ void Frame::renderText(Graphics::ManagedSurface &surface, uint16 spriteID) { const Graphics::Font *font = _vm->_wm->_fontMan->getFont(macFont); + debugC(3, kDebugText, "renderText: x: %d y: %d w: %d h: %d font: '%s'", x, y, width, height, _vm->_wm->_fontMan->getFontName(macFont)); + font->drawString(&surface, text, x, y, width, 0); if (textCast->borderSize != kSizeNone) { |