Skip to content

Commit

Permalink
DIRECTOR: Update font generation
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 3, 2016
1 parent 59ebb0c commit 96e288c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/director/score.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 96e288c

Please sign in to comment.