From c750bea0ddcd0f5b7e3fed28d0a80cca6f326532 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 19 May 2007 20:44:18 +0000 Subject: 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 --- engines/sword1/animation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sword1') 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]; } } -- cgit v1.2.3