[Scummvm-cvs-logs] SF.net SVN: scummvm: [22769] scummvm/trunk/engines/kyra/text.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Tue May 30 05:14:15 CEST 2006
Revision: 22769
Author: eriktorbjorn
Date: 2006-05-30 05:13:34 -0700 (Tue, 30 May 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22769&view=rev
Log Message:
-----------
Fixed subtitles Y coordinate in characterSays(). I have no way of confirming
this, but it seems obvious to me that it's trying to subtract the character's
scaled height, and this is how that's calculated elsewhere as far as I can see.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/text.cpp
Modified: scummvm/trunk/engines/kyra/text.cpp
===================================================================
--- scummvm/trunk/engines/kyra/text.cpp 2006-05-30 12:07:47 UTC (rev 22768)
+++ scummvm/trunk/engines/kyra/text.cpp 2006-05-30 12:13:34 UTC (rev 22769)
@@ -267,7 +267,7 @@
int lineNum = _text->buildMessageSubstrings(processedString);
int16 yPos = _characterList[charNum].y1;
- yPos -= _scaleTable[charNum] * _characterList[charNum].height;
+ yPos -= ((_scaleTable[yPos] * _characterList[charNum].height) >> 8);
yPos -= 8;
yPos -= lineNum * 10;
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