From 96e288c4c91bca55b89e0730bad76d69f6a05a94 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 3 Aug 2016 23:43:01 +0200 Subject: DIRECTOR: Update font generation --- engines/director/score.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/director') 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); -- cgit v1.2.3