diff options
author | Paul Gilbert | 2012-01-18 21:45:11 +1100 |
---|---|---|
committer | Strangerke | 2012-04-06 08:19:52 +0200 |
commit | 3d667ba670486359165ec95f61f3fc9d17e39bf0 (patch) | |
tree | 349e925bc7c2001c8901448612f55ad1997441a9 /engines/mortevielle | |
parent | 1d8ec4c3724a257c6f69210e0c02c77e8517be49 (diff) | |
download | scummvm-rg350-3d667ba670486359165ec95f61f3fc9d17e39bf0.tar.gz scummvm-rg350-3d667ba670486359165ec95f61f3fc9d17e39bf0.tar.bz2 scummvm-rg350-3d667ba670486359165ec95f61f3fc9d17e39bf0.zip |
MORTEVIELLE: Fix decoding glitch in the first image
Diffstat (limited to 'engines/mortevielle')
-rw-r--r-- | engines/mortevielle/graphics.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/mortevielle/graphics.cpp b/engines/mortevielle/graphics.cpp index 64e1256f8a..95988d32c1 100644 --- a/engines/mortevielle/graphics.cpp +++ b/engines/mortevielle/graphics.cpp @@ -499,8 +499,10 @@ void GfxSurface::horizontal(const byte *&pSrc, byte *&pDest, const byte *&pLooku ++pDest; } else { // Write out vertical slice bottom to top - for (int yIndex = 0; yIndex < _thickness; ++yIndex, pDest -= DEFAULT_WIDTH) + for (int yIndex = 0; yIndex < _thickness; ++yIndex) { + pDest -= DEFAULT_WIDTH; *pDest = csuiv(pSrc, pLookup); + } } } @@ -529,8 +531,10 @@ void GfxSurface::horizontal(const byte *&pSrc, byte *&pDest, const byte *&pLooku *pDest = csuiv(pSrc, pLookup); } else { // Write out vertical slice top to bottom - for (int yIndex = 0; yIndex < _thickness; ++yIndex, pDest -= DEFAULT_WIDTH) + for (int yIndex = 0; yIndex < _thickness; ++yIndex) { + pDest -= DEFAULT_WIDTH; *pDest = csuiv(pSrc, pLookup); + } } } |