diff options
author | Arnaud Boutonné | 2010-11-07 00:02:48 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2010-11-07 00:02:48 +0000 |
commit | a4cd83061eae135f17eefe15ee023817ec734250 (patch) | |
tree | 1d9b743baabf171c48e7b0fec46c1064c60f20bd /engines/hugo/display_v1w.cpp | |
parent | f5d2695800473fa44500dc3fdaa92f9fcff844b9 (diff) | |
download | scummvm-rg350-a4cd83061eae135f17eefe15ee023817ec734250.tar.gz scummvm-rg350-a4cd83061eae135f17eefe15ee023817ec734250.tar.bz2 scummvm-rg350-a4cd83061eae135f17eefe15ee023817ec734250.zip |
HUGO: Move fonts to display.cpp
Some cleanup
svn-id: r54103
Diffstat (limited to 'engines/hugo/display_v1w.cpp')
-rw-r--r-- | engines/hugo/display_v1w.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/engines/hugo/display_v1w.cpp b/engines/hugo/display_v1w.cpp index 773d592731..7cc94cc85a 100644 --- a/engines/hugo/display_v1w.cpp +++ b/engines/hugo/display_v1w.cpp @@ -53,8 +53,6 @@ Screen_v1w::~Screen_v1w() { void Screen_v1w::loadFont(int16 fontId) { debugC(2, kDebugDisplay, "loadFont(%d)", fontId); - static bool fontLoadedFl[NUM_FONTS] = {false, false, false}; - _fnt = fontId - FIRST_FONT; // Set current font number if (fontLoadedFl[_fnt]) // If already loaded, return @@ -81,5 +79,16 @@ void Screen_v1w::loadFont(int16 fontId) { offset += 2 + size; } } + +/** +* Skips the fonts used by the DOS versions +*/ +void Screen_v1w::loadFontArr(Common::File &in) { + for (int i = 0; i < NUM_FONTS; i++) { + uint16 numElem = in.readUint16BE(); + for (int j = 0; j < numElem; j++) + in.readByte(); + } +} } // End of namespace Hugo |