[Scummvm-cvs-logs] SF.net SVN: scummvm: [24289] scummvm/trunk/engines/agos/verb.cpp
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Fri Oct 13 09:23:38 CEST 2006
Revision: 24289
http://svn.sourceforge.net/scummvm/?rev=24289&view=rev
Author: kirben
Date: 2006-10-13 00:23:34 -0700 (Fri, 13 Oct 2006)
Log Message:
-----------
Fix position of descriptions in WW
Modified Paths:
--------------
scummvm/trunk/engines/agos/verb.cpp
Modified: scummvm/trunk/engines/agos/verb.cpp
===================================================================
--- scummvm/trunk/engines/agos/verb.cpp 2006-10-13 05:06:53 UTC (rev 24288)
+++ scummvm/trunk/engines/agos/verb.cpp 2006-10-13 07:23:34 UTC (rev 24289)
@@ -274,14 +274,15 @@
void AGOSEngine::showActionString(const byte *string) {
WindowBlock *window;
uint x;
+ const uint len = (getGameType() == GType_WW) ? 29 : 53;
window = _windowArray[1];
if (window == NULL || window->text_color == 0)
return;
// Arisme : hack for long strings in the French version
- if ((strlen((const char*)string) - 1) <= 53)
- x = (53 - (strlen((const char *)string) - 1)) * 3;
+ if ((strlen((const char*)string) - 1) <= len)
+ x = (len - (strlen((const char *)string) - 1)) * 3;
else
x = 0;
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