diff options
author | Martin Kiewitz | 2015-05-19 12:39:39 +0200 |
---|---|---|
committer | Martin Kiewitz | 2015-05-19 12:39:39 +0200 |
commit | a709596b48b93e46b36f2142f6d781a5198fe8a2 (patch) | |
tree | 1774842709e6300a1dfb5297ff10f9725291a190 /engines/agi/agi.cpp | |
parent | aba98e910c9acea7063e1d21072c9943b5f26f8c (diff) | |
download | scummvm-rg350-a709596b48b93e46b36f2142f6d781a5198fe8a2.tar.gz scummvm-rg350-a709596b48b93e46b36f2142f6d781a5198fe8a2.tar.bz2 scummvm-rg350-a709596b48b93e46b36f2142f6d781a5198fe8a2.zip |
AGI: implement original sierra font, fix bug #6405
custom font is still used for fanmade games
i cannot test preAGI games, because I don't own
those.
Diffstat (limited to 'engines/agi/agi.cpp')
-rw-r--r-- | engines/agi/agi.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index 85a8e175bd..2b5d7137bc 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -515,6 +515,8 @@ AgiBase::AgiBase(OSystem *syst, const AGIGameDescription *gameDesc) : Engine(sys _rnd = new Common::RandomSource("agi"); _sound = 0; + _fontData = NULL; + initFeatures(); initVersion(); } @@ -569,6 +571,13 @@ AgiEngine::AgiEngine(OSystem *syst, const AGIGameDescription *gameDesc) : AgiBas _game.mouseEnabled = false; } + // We are currently using the custom font for all fanmade games + if (!(getFeatures() & (GF_FANMADE | GF_AGDS))) { + _fontData = fontData_Sierra; // original Sierra font + } else { + _fontData = fontData_FanGames; // our (own?) custom font, that supports umlauts etc. + } + _game._vm = this; _game.clockEnabled = false; |