aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1/animation.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2009-02-14 15:52:31 +0000
committerTorbjörn Andersson2009-02-14 15:52:31 +0000
commit6d700452288010202ffff4915c172df2fc086cbe (patch)
tree0e514148b1a174d22531df3bdcf6a642cd530e3b /engines/sword1/animation.cpp
parent6c586b3d4436abc994b5bae39d0c91427259b7b4 (diff)
downloadscummvm-rg350-6d700452288010202ffff4915c172df2fc086cbe.tar.gz
scummvm-rg350-6d700452288010202ffff4915c172df2fc086cbe.tar.bz2
scummvm-rg350-6d700452288010202ffff4915c172df2fc086cbe.zip
Fixed bug #2599531 ("SWORD1: truck.dxa plays striped"). The last parameter to
copyFrameToBuffer() is the pitch of the destination buffer, not the frame. svn-id: r36330
Diffstat (limited to 'engines/sword1/animation.cpp')
-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 8219dbce12..04344a9b3f 100644
--- a/engines/sword1/animation.cpp
+++ b/engines/sword1/animation.cpp
@@ -442,7 +442,7 @@ void MoviePlayerDXA::processFrame(void) {
void MoviePlayerDXA::updateScreen(void) {
Graphics::Surface *frameBuffer = _system->lockScreen();
- copyFrameToBuffer((byte *)frameBuffer->pixels, _frameX, _frameY, _frameWidth);
+ copyFrameToBuffer((byte *)frameBuffer->pixels, _frameX, _frameY, 640);
// TODO: Handle the advanced cutscene packs. Do they really exist?