aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus
diff options
context:
space:
mode:
authorMatthew Hoops2011-09-28 18:50:10 -0400
committerMatthew Hoops2011-09-28 18:50:10 -0400
commit426ab47067a68dc1704f476c94de633492944af2 (patch)
tree994150c7b441c07046c750799e6ed52d0c1670c7 /engines/pegasus
parent1659c82c370983bcf477f086f6e788ce64c3c6ee (diff)
downloadscummvm-rg350-426ab47067a68dc1704f476c94de633492944af2.tar.gz
scummvm-rg350-426ab47067a68dc1704f476c94de633492944af2.tar.bz2
scummvm-rg350-426ab47067a68dc1704f476c94de633492944af2.zip
PEGASUS: Fix bug in redrawMovieWorld
Diffstat (limited to 'engines/pegasus')
-rwxr-xr-xengines/pegasus/movie.cpp4
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);