[Scummvm-cvs-logs] SF.net SVN: scummvm: [27146] scummvm/trunk/engines/agos/saveload.cpp
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Thu Jun 7 01:33:34 CEST 2007
Revision: 27146
http://scummvm.svn.sourceforge.net/scummvm/?rev=27146&view=rev
Author: Kirben
Date: 2007-06-06 16:33:31 -0700 (Wed, 06 Jun 2007)
Log Message:
-----------
Fix glitches when highlighting saved game names in Elvira 2 and Waxworks, caused by incorrect position of characters.
Modified Paths:
--------------
scummvm/trunk/engines/agos/saveload.cpp
Modified: scummvm/trunk/engines/agos/saveload.cpp
===================================================================
--- scummvm/trunk/engines/agos/saveload.cpp 2007-06-06 19:46:10 UTC (rev 27145)
+++ scummvm/trunk/engines/agos/saveload.cpp 2007-06-06 23:33:31 UTC (rev 27146)
@@ -166,7 +166,7 @@
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 @@
}
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 @@
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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list