[Scummvm-cvs-logs] SF.net SVN: scummvm: [26877] scummvm/trunk/engines/sword1/animation.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Sat May 19 22:44:19 CEST 2007
Revision: 26877
http://scummvm.svn.sourceforge.net/scummvm/?rev=26877&view=rev
Author: eriktorbjorn
Date: 2007-05-19 13:44:18 -0700 (Sat, 19 May 2007)
Log Message:
-----------
Fixed error in subtitle drawing. (This part of the code should still be cleaned
up, as it's badly written. I should know, I wrote it.)
Modified Paths:
--------------
scummvm/trunk/engines/sword1/animation.cpp
Modified: scummvm/trunk/engines/sword1/animation.cpp
===================================================================
--- scummvm/trunk/engines/sword1/animation.cpp 2007-05-19 20:41:42 UTC (rev 26876)
+++ scummvm/trunk/engines/sword1/animation.cpp 2007-05-19 20:44:18 UTC (rev 26877)
@@ -450,7 +450,7 @@
for (y = _textY; y < _textY + _textHeight; y++) {
for (x = _textX; x < _textX + _textWidth; x++) {
- if (x >= _frameX && x <= _frameX + _frameWidth && y >= _frameY && y <= _frameY + _frameWidth) {
+ if (x >= _frameX && x <= _frameX + _frameWidth && y >= _frameY && y <= _frameY + _frameHeight) {
_textSpriteBuf[(y - _textY) * _textWidth + x - _textX] = _drawBuffer[(y - _frameY) * _frameWidth + x - _frameX];
}
}
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