diff options
author | Torbjörn Andersson | 2007-01-21 17:14:53 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2007-01-21 17:14:53 +0000 |
commit | 01a5faa6a0ba89b7f774efe33839a077eeaa5f9d (patch) | |
tree | 64ebe05de9e2d099e85f2053b591b8cbdafe80e0 /engines/scumm/smush/smush_player.cpp | |
parent | 44cbf4996b7a26832e566bfada4d186643056234 (diff) | |
download | scummvm-rg350-01a5faa6a0ba89b7f774efe33839a077eeaa5f9d.tar.gz scummvm-rg350-01a5faa6a0ba89b7f774efe33839a077eeaa5f9d.tar.bz2 scummvm-rg350-01a5faa6a0ba89b7f774efe33839a077eeaa5f9d.zip |
Applied my own patch #1635584 (after discussing with Fingolfin) to reduce the
memory usage and number of allocations made by the NUT font renderer.
svn-id: r25155
Diffstat (limited to 'engines/scumm/smush/smush_player.cpp')
-rw-r--r-- | engines/scumm/smush/smush_player.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/scumm/smush/smush_player.cpp b/engines/scumm/smush/smush_player.cpp index dbcde31597..747e89a980 100644 --- a/engines/scumm/smush/smush_player.cpp +++ b/engines/scumm/smush/smush_player.cpp @@ -1042,17 +1042,17 @@ void SmushPlayer::setupAnim(const char *file) { _sf[1] = new SmushFont(_vm, true, false); _sf[2] = new SmushFont(_vm, true, false); _sf[3] = new SmushFont(_vm, true, false); - _sf[0]->loadFont("scummfnt.nut"); - _sf[1]->loadFont("techfnt.nut"); - _sf[2]->loadFont("titlfnt.nut"); - _sf[3]->loadFont("specfnt.nut"); + _sf[0]->loadFont("scummfnt.nut", false); + _sf[1]->loadFont("techfnt.nut", false); + _sf[2]->loadFont("titlfnt.nut", false); + _sf[3]->loadFont("specfnt.nut", false); } } else if (_vm->_game.id == GID_DIG) { if (!(_vm->_game.features & GF_DEMO)) { for (i = 0; i < 4; i++) { sprintf(file_font, "font%d.nut", i); _sf[i] = new SmushFont(_vm, i != 0, false); - _sf[i]->loadFont(file_font); + _sf[i]->loadFont(file_font, false); } } } else if (_vm->_game.id == GID_CMI) { @@ -1061,7 +1061,7 @@ void SmushPlayer::setupAnim(const char *file) { break; sprintf(file_font, "font%d.nut", i); _sf[i] = new SmushFont(_vm, false, true); - _sf[i]->loadFont(file_font); + _sf[i]->loadFont(file_font, false); } } else { error("SmushPlayer::setupAnim() Unknown font setup for game"); |