From 9dde7e2b87e4284ca19faea79175634f022734e5 Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Wed, 5 Jan 2011 23:39:36 +0000 Subject: HUGO: Little cleanup svn-id: r55128 --- engines/hugo/intro_v2d.cpp | 21 +++++++-------------- 1 file 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(); -- cgit v1.2.3