aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/tsage/graphics.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/tsage/graphics.cpp b/engines/tsage/graphics.cpp
index 6d95d09d29..40654a345e 100644
--- a/engines/tsage/graphics.cpp
+++ b/engines/tsage/graphics.cpp
@@ -693,12 +693,15 @@ void GfxElement::drawFrame() {
transList[i] = tempPalette.indexOf(v, v, v);
}
- // Loop through the surface area to replace each pixel with it's proper shaded replacement
+ // Loop through the surface area to replace each pixel
+ // with its proper shaded replacement
Graphics::Surface surface = gfxManager.lockSurface();
for (int y = tempRect.top; y < tempRect.bottom; ++y) {
byte *lineP = (byte *)surface.getBasePtr(tempRect.left, y);
- for (int x = 0; x < tempRect.width(); ++x)
- *lineP++ = transList[*lineP];
+ for (int x = 0; x < tempRect.width(); ++x) {
+ *lineP = transList[*lineP];
+ lineP++;
+ }
}
gfxManager.unlockSurface();