aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2007-05-19 20:44:18 +0000
committerTorbjörn Andersson2007-05-19 20:44:18 +0000
commitc750bea0ddcd0f5b7e3fed28d0a80cca6f326532 (patch)
tree2e21f68486826391ed9b84855f3faf6a705df2c1
parenta165d96fd3cc9bf6109d6a6b731cffe402e0db41 (diff)
downloadscummvm-rg350-c750bea0ddcd0f5b7e3fed28d0a80cca6f326532.tar.gz
scummvm-rg350-c750bea0ddcd0f5b7e3fed28d0a80cca6f326532.tar.bz2
scummvm-rg350-c750bea0ddcd0f5b7e3fed28d0a80cca6f326532.zip
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.) svn-id: r26877
-rw-r--r--engines/sword1/animation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword1/animation.cpp b/engines/sword1/animation.cpp
index 6893d122ad..c80614d2d4 100644
--- a/engines/sword1/animation.cpp
+++ b/engines/sword1/animation.cpp
@@ -450,7 +450,7 @@ void MoviePlayerDXA::processFrame(void) {
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];
}
}