diff options
author | Willem Jan Palenstijn | 2011-11-01 15:24:14 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-11-01 15:24:14 +0100 |
commit | 47bc08a429ce03bf811dd63c45bd05cd76828dd7 (patch) | |
tree | edc5c4ca52cf0246f6432f20e3e7238b664cfc0c /engines/tsage/graphics.cpp | |
parent | 56dc66548048ef90fe3028faf1fe7b40dd104e76 (diff) | |
download | scummvm-rg350-47bc08a429ce03bf811dd63c45bd05cd76828dd7.tar.gz scummvm-rg350-47bc08a429ce03bf811dd63c45bd05cd76828dd7.tar.bz2 scummvm-rg350-47bc08a429ce03bf811dd63c45bd05cd76828dd7.zip |
TSAGE: Fix undefined evaluation order
Diffstat (limited to 'engines/tsage/graphics.cpp')
-rw-r--r-- | engines/tsage/graphics.cpp | 9 |
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(); |