[Scummvm-cvs-logs] SF.net SVN: scummvm: [27138] scummvm/trunk/engines/agos/charset.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Wed Jun 6 15:59:06 CEST 2007


Revision: 27138
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27138&view=rev
Author:   Kirben
Date:     2007-06-06 06:59:04 -0700 (Wed, 06 Jun 2007)

Log Message:
-----------
Fix glitches when highlighting words in Elvira 2, the characters were drawn at the incorrect location, due to difference in column offset used for new lines.

Modified Paths:
--------------
    scummvm/trunk/engines/agos/charset.cpp

Modified: scummvm/trunk/engines/agos/charset.cpp
===================================================================
--- scummvm/trunk/engines/agos/charset.cpp	2007-06-06 13:35:41 UTC (rev 27137)
+++ scummvm/trunk/engines/agos/charset.cpp	2007-06-06 13:59:04 UTC (rev 27138)
@@ -695,7 +695,7 @@
 
 void AGOSEngine::windowNewLine(WindowBlock *window) {
 	window->textColumn = 0;
-	window->textColumnOffset = 0;
+	window->textColumnOffset = (getGameType() == GType_ELVIRA2) ? 4 : 0;
 	window->textLength = 0;
 
 	if (window->textRow == window->height) {


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