diff options
author | Arnaud Boutonné | 2011-01-05 23:39:36 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2011-01-05 23:39:36 +0000 |
commit | 9dde7e2b87e4284ca19faea79175634f022734e5 (patch) | |
tree | 8b1af039f2bc7763ace8e3973ab186794f50bc19 | |
parent | 7b1e6bd2f8d9c7ac4ce8219595bfb272a578e200 (diff) | |
download | scummvm-rg350-9dde7e2b87e4284ca19faea79175634f022734e5.tar.gz scummvm-rg350-9dde7e2b87e4284ca19faea79175634f022734e5.tar.bz2 scummvm-rg350-9dde7e2b87e4284ca19faea79175634f022734e5.zip |
HUGO: Little cleanup
svn-id: r55128
-rw-r--r-- | engines/hugo/intro_v2d.cpp | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/engines/hugo/intro_v2d.cpp b/engines/hugo/intro_v2d.cpp index ea9fd88fb0..5e408a7608 100644 --- a/engines/hugo/intro_v2d.cpp +++ b/engines/hugo/intro_v2d.cpp @@ -58,28 +58,21 @@ void intro_v2d::introInit() { char buffer[128]; + // TROMAN, size 10-5 + if (!font.loadFromFON("TMSRB.FON", Graphics::WinFontDirEntry("Tms Rmn", 8))) + error("Unable to load font TMSRB.FON, face 'Tms Rmn', size 8"); + if (_boot.registered) sprintf(buffer, "%s Registered Version", COPYRIGHT); else sprintf(buffer, "%s Shareware Version", COPYRIGHT); - // TROMAN, size 10-5 - if (font.loadFromFON("TMSRB.FON", Graphics::WinFontDirEntry("Tms Rmn", 8))) { - font.drawString(&surf, buffer, 0, 186, 320, _TLIGHTRED, Graphics::kTextAlignCenter); - } else { - _vm->_screen->loadFont(0); - _vm->_screen->writeStr(CENTER, 186, buffer, _TLIGHTRED); - } + font.drawString(&surf, buffer, 0, 186, 320, _TLIGHTRED, Graphics::kTextAlignCenter); if (scumm_stricmp(_boot.distrib, "David P. Gray")) { - sprintf(buffer, "Distributed by %s.", _boot.distrib); // TROMAN, size 10-5 - if (font.loadFromFON("TMSRB.FON", Graphics::WinFontDirEntry("Tms Rmn", 8))) { - font.drawString(&surf, buffer, 0, 1, 320, _TLIGHTRED, Graphics::kTextAlignCenter); - } else { - _vm->_screen->loadFont(0); - _vm->_screen->writeStr(CENTER, 1, buffer, _TLIGHTRED); - } + sprintf(buffer, "Distributed by %s.", _boot.distrib); + font.drawString(&surf, buffer, 0, 1, 320, _TLIGHTRED, Graphics::kTextAlignCenter); } _vm->_screen->displayBackground(); |