diff options
author | Travis Howell | 2007-06-06 23:33:31 +0000 |
---|---|---|
committer | Travis Howell | 2007-06-06 23:33:31 +0000 |
commit | 0eb630d9899e935f45a209c0f856fbd5acb52f72 (patch) | |
tree | 9c991506e06f58f92cd7c1f4506aada61eb980c8 /engines | |
parent | 9b14f5faedef513be2f17da57b7fb9182a751150 (diff) | |
download | scummvm-rg350-0eb630d9899e935f45a209c0f856fbd5acb52f72.tar.gz scummvm-rg350-0eb630d9899e935f45a209c0f856fbd5acb52f72.tar.bz2 scummvm-rg350-0eb630d9899e935f45a209c0f856fbd5acb52f72.zip |
Fix glitches when highlighting saved game names in Elvira 2 and Waxworks, caused by incorrect position of characters.
svn-id: r27146
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agos/saveload.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/engines/agos/saveload.cpp b/engines/agos/saveload.cpp index ca67d4e215..c4cd370aed 100644 --- a/engines/agos/saveload.cpp +++ b/engines/agos/saveload.cpp @@ -166,7 +166,7 @@ void AGOSEngine::listSaveGames(char *dst) { slot = _saveLoadRowCurPos; for (y = 0; y < 8; y++) { window->textColumn = 0; - window->textColumnOffset = 4; + window->textColumnOffset = (getGameType() == GType_ELVIRA2) ? 4 : 0; window->textLength = 0; if ((in = _saveFileMan->openForLoading(genSaveName(slot++)))) { in->read(dst, 8); @@ -180,8 +180,13 @@ void AGOSEngine::listSaveGames(char *dst) { } dst+= 8; - window->textColumn = 7; - window->textColumnOffset = 4; + if (getGameType() == GType_WW) { + window->textColumn = 7; + window->textColumnOffset = 4; + } else if (getGameType() == GType_ELVIRA2) { + window->textColumn = 8; + window->textColumnOffset = 0; + } window->textLength = 0; if ((in = _saveFileMan->openForLoading(genSaveName(slot++)))) { in->read(dst, 8); @@ -196,7 +201,7 @@ void AGOSEngine::listSaveGames(char *dst) { dst+= 8; window->textColumn = 15; - window->textColumnOffset = 4; + window->textColumnOffset = (getGameType() == GType_ELVIRA2) ? 4 : 0; window->textLength = 0; if ((in = _saveFileMan->openForLoading(genSaveName(slot++)))) { in->read(dst, 8); |