[Scummvm-cvs-logs] scummvm master -> 2d12325006c7db4984b2a544ec134387d5432ab0

Strangerke Strangerke at scummvm.org
Wed Feb 26 08:12:24 CET 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
2d12325006 VOYEUR: Fix eternal loop bug in sDrawPic()


Commit: 2d12325006c7db4984b2a544ec134387d5432ab0
    https://github.com/scummvm/scummvm/commit/2d12325006c7db4984b2a544ec134387d5432ab0
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-02-25T23:10:46-08:00

Commit Message:
VOYEUR: Fix eternal loop bug in sDrawPic()

Changed paths:
    engines/voyeur/graphics.cpp



diff --git a/engines/voyeur/graphics.cpp b/engines/voyeur/graphics.cpp
index 7f944ef..5bf314e 100644
--- a/engines/voyeur/graphics.cpp
+++ b/engines/voyeur/graphics.cpp
@@ -295,7 +295,7 @@ void GraphicsManager::sDrawPic(DisplayResource *srcDisplay, DisplayResource *des
 							srcP = (byte *)_screenSurface.getPixels() + srcOffset;
 
 							for (int yp = 0; yp < height1; ++yp) {
-								for (int xp = 0; xp < width2; ++width2, ++srcP, ++destP) {
+								for (int xp = 0; xp < width2; ++xp, ++srcP, ++destP) {
 									pixel = *srcP;
 									if (pixel)
 										*destP = pixel;






More information about the Scummvm-git-logs mailing list