diff options
author | Eugene Sandulenko | 2016-08-03 23:43:01 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:43:01 +0200 |
commit | 96e288c4c91bca55b89e0730bad76d69f6a05a94 (patch) | |
tree | 907b67b3322a63c89e45bf1c4b473cda37731e2f /engines/director | |
parent | 59ebb0c68f9ea0f0a6862698365d6f9b7a7f9b7c (diff) | |
download | scummvm-rg350-96e288c4c91bca55b89e0730bad76d69f6a05a94.tar.gz scummvm-rg350-96e288c4c91bca55b89e0730bad76d69f6a05a94.tar.bz2 scummvm-rg350-96e288c4c91bca55b89e0730bad76d69f6a05a94.zip |
DIRECTOR: Update font generation
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/score.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index 5fdf315241..4bb4dda2e5 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -1395,9 +1395,9 @@ void Frame::renderText(Graphics::ManagedSurface &surface, uint16 spriteID) { if (_vm->_currentScore->_fontMap.contains(textCast->fontId)) { fontName = _vm->_currentScore->_fontMap[textCast->fontId].c_str(); - } else if ((fontName = _vm->_wm->getFontName(textCast->fontId)) == NULL) { + } else if ((fontName = _vm->_wm->getFontName(textCast->fontId, textCast->fontSize)) == NULL) { warning("Unknown font id %d, falling back to default", textCast->fontId); - fontName = _vm->_wm->getFontName(0); + fontName = _vm->_wm->getFontName(0, 12); } const Graphics::Font *font = _vm->_wm->getFont(fontName, Graphics::FontManager::kBigGUIFont); |