[Scummvm-cvs-logs] SF.net SVN: scummvm: [27522] scummvm/trunk/engines/agos/window.cpp
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Mon Jun 18 12:57:51 CEST 2007
Revision: 27522
http://scummvm.svn.sourceforge.net/scummvm/?rev=27522&view=rev
Author: Kirben
Date: 2007-06-18 03:57:50 -0700 (Mon, 18 Jun 2007)
Log Message:
-----------
Fix line wrapping of text in Elvira 2.
Modified Paths:
--------------
scummvm/trunk/engines/agos/window.cpp
Modified: scummvm/trunk/engines/agos/window.cpp
===================================================================
--- scummvm/trunk/engines/agos/window.cpp 2007-06-18 09:07:10 UTC (rev 27521)
+++ scummvm/trunk/engines/agos/window.cpp 2007-06-18 10:57:50 UTC (rev 27522)
@@ -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