diff options
author | Gregory Montoir | 2007-01-27 02:26:37 +0000 |
---|---|---|
committer | Gregory Montoir | 2007-01-27 02:26:37 +0000 |
commit | 2b61c0d6c1efba14b23655905751981e9b19e365 (patch) | |
tree | c3964a11338fc21e7e9542ced5b860fa167c3daf /engines/scumm/smush/smush_player.cpp | |
parent | 843b30403163b67ec277f086f3ead587bd50e266 (diff) | |
download | scummvm-rg350-2b61c0d6c1efba14b23655905751981e9b19e365.tar.gz scummvm-rg350-2b61c0d6c1efba14b23655905751981e9b19e365.tar.bz2 scummvm-rg350-2b61c0d6c1efba14b23655905751981e9b19e365.zip |
cleanup (made NutRenderer::loadFont protected, added call during initialisation of the renderer object)
svn-id: r25223
Diffstat (limited to 'engines/scumm/smush/smush_player.cpp')
-rw-r--r-- | engines/scumm/smush/smush_player.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/scumm/smush/smush_player.cpp b/engines/scumm/smush/smush_player.cpp index 38febf8a29..8363868d09 100644 --- a/engines/scumm/smush/smush_player.cpp +++ b/engines/scumm/smush/smush_player.cpp @@ -1051,24 +1051,21 @@ SmushFont *SmushPlayer::getFont(int font) { assert(font >= 0 && font < ARRAYSIZE(ft_fonts)); - _sf[font] = new SmushFont(_vm, true, false); - _sf[font]->loadFont(ft_fonts[font], false); + _sf[font] = new SmushFont(_vm, ft_fonts[font], true, false); } } else if (_vm->_game.id == GID_DIG) { if (!(_vm->_game.features & GF_DEMO)) { assert(font >= 0 && font < 4); sprintf(file_font, "font%d.nut", font); - _sf[font] = new SmushFont(_vm, font != 0, false); - _sf[font]->loadFont(file_font, false); + _sf[font] = new SmushFont(_vm, file_font, font != 0, false); } } else if (_vm->_game.id == GID_CMI) { int numFonts = (_vm->_game.features & GF_DEMO) ? 4 : 5; assert(font >= 0 && font < numFonts); sprintf(file_font, "font%d.nut", font); - _sf[font] = new SmushFont(_vm, false, true); - _sf[font]->loadFont(file_font, false); + _sf[font] = new SmushFont(_vm, file_font, false, true); } else { error("SmushPlayer::getFont() Unknown font setup for game"); } |