aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/preagi.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2015-05-19 12:39:39 +0200
committerMartin Kiewitz2015-05-19 12:39:39 +0200
commita709596b48b93e46b36f2142f6d781a5198fe8a2 (patch)
tree1774842709e6300a1dfb5297ff10f9725291a190 /engines/agi/preagi.cpp
parentaba98e910c9acea7063e1d21072c9943b5f26f8c (diff)
downloadscummvm-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/preagi.cpp')
-rw-r--r--engines/agi/preagi.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/agi/preagi.cpp b/engines/agi/preagi.cpp
index daadb5ffef..c368c7b195 100644
--- a/engines/agi/preagi.cpp
+++ b/engines/agi/preagi.cpp
@@ -59,6 +59,12 @@ void PreAgiEngine::initialize() {
_gfx = new GfxMgr(this);
_picture = new PictureMgr(this, _gfx);
+ if (getGameID() == GID_MICKEY) {
+ _fontData = fontData_Mickey;
+ } else {
+ _fontData = fontData_IBM;
+ }
+
_gfx->initMachine();
_game.gameFlags = 0;
@@ -137,7 +143,7 @@ void PreAgiEngine::drawStr(int row, int col, int attr, const char *buffer) {
break;
default:
- _gfx->putTextCharacter(1, col * 8 , row * 8, static_cast<char>(code), attr & 0x0f, (attr & 0xf0) / 0x10, false, getGameID() == GID_MICKEY ? mickey_fontdata : ibm_fontdata);
+ _gfx->putTextCharacter(1, col * 8 , row * 8, static_cast<char>(code), attr & 0x0f, (attr & 0xf0) / 0x10, false, _fontData);
if (++col == 320 / 8) {
col = 0;