[Scummvm-cvs-logs] SF.net SVN: scummvm: [27523] scummvm/branches/branch-0-10-0/engines/agos/ window.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Mon Jun 18 12:57:52 CEST 2007


Revision: 27523
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27523&view=rev
Author:   Kirben
Date:     2007-06-18 03:57:52 -0700 (Mon, 18 Jun 2007)

Log Message:
-----------
Fix line wrapping of text in Elvira 2.

Modified Paths:
--------------
    scummvm/branches/branch-0-10-0/engines/agos/window.cpp

Modified: scummvm/branches/branch-0-10-0/engines/agos/window.cpp
===================================================================
--- scummvm/branches/branch-0-10-0/engines/agos/window.cpp	2007-06-18 10:57:50 UTC (rev 27522)
+++ scummvm/branches/branch-0-10-0/engines/agos/window.cpp	2007-06-18 10:57:52 UTC (rev 27523)
@@ -60,11 +60,16 @@
 	window->fill_color = fillColor;
 	window->text_color = textColor;
 	window->textColumn = 0;
+	window->textColumnOffset = 0;
 	window->textRow = 0;
-	window->textColumnOffset = 0;
-	window->textMaxLength = window->width * 8 / 6; // characters are 6 pixels
 	window->scrollY = 0;
 
+	// Characters are 6 pixels
+	if (getGameType() == GType_ELVIRA2)
+		window->textMaxLength = (window->width * 8 - 4) / 6;
+	else
+		window->textMaxLength = window->width * 8 / 6;
+
 	if (getGameType() == GType_ELVIRA1 || getGameType() == GType_ELVIRA2 || getGameType() == GType_WW)
 		clearWindow(window);
 


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