diff options
author | Matthew Hoops | 2011-09-28 18:50:10 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-09-28 18:50:10 -0400 |
commit | 426ab47067a68dc1704f476c94de633492944af2 (patch) | |
tree | 994150c7b441c07046c750799e6ed52d0c1670c7 /engines/pegasus/movie.cpp | |
parent | 1659c82c370983bcf477f086f6e788ce64c3c6ee (diff) | |
download | scummvm-rg350-426ab47067a68dc1704f476c94de633492944af2.tar.gz scummvm-rg350-426ab47067a68dc1704f476c94de633492944af2.tar.bz2 scummvm-rg350-426ab47067a68dc1704f476c94de633492944af2.zip |
PEGASUS: Fix bug in redrawMovieWorld
Diffstat (limited to 'engines/pegasus/movie.cpp')
-rwxr-xr-x | engines/pegasus/movie.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/pegasus/movie.cpp b/engines/pegasus/movie.cpp index bbe63a00a8..586c2f5834 100755 --- a/engines/pegasus/movie.cpp +++ b/engines/pegasus/movie.cpp @@ -92,8 +92,8 @@ void Movie::redrawMovieWorld() { g_system->copyRectToScreen((byte *)frame->pixels, frame->pitch, bounds.left, bounds.top, frame->w, frame->h); } else { // Copy to the surface using _movieBox - uint16 width = MIN<int>(MIN<int>(frame->w, _movieBox.width()), _surface->w - _movieBox.left); - uint16 height = MIN<int>(MIN<int>(frame->h, _movieBox.height()), _surface->h - _movieBox.top); + uint16 width = MIN<int>(frame->w, _movieBox.width()); + uint16 height = MIN<int>(frame->h, _movieBox.height()); for (uint16 y = 0; y < height; y++) memcpy((byte *)_surface->getBasePtr(_movieBox.left, _movieBox.top + y), (const byte *)frame->getBasePtr(0, y), width * frame->format.bytesPerPixel); |