diff options
author | Travis Howell | 2007-06-05 08:48:30 +0000 |
---|---|---|
committer | Travis Howell | 2007-06-05 08:48:30 +0000 |
commit | 06d9b8ea39e719bcc457739c3ecd224ba03f543e (patch) | |
tree | eda73301c021a086a240f3dfbc57061b09b56e7b /engines/agos | |
parent | 1304f53af1ee652f6f6427eaaa707dc0c5cf5f48 (diff) | |
download | scummvm-rg350-06d9b8ea39e719bcc457739c3ecd224ba03f543e.tar.gz scummvm-rg350-06d9b8ea39e719bcc457739c3ecd224ba03f543e.tar.bz2 scummvm-rg350-06d9b8ea39e719bcc457739c3ecd224ba03f543e.zip |
Fix palette glitches on printScroll background, during many scenes in Eivira 1.
svn-id: r27100
Diffstat (limited to 'engines/agos')
-rw-r--r-- | engines/agos/window.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/agos/window.cpp b/engines/agos/window.cpp index 89a98020e5..d712c01973 100644 --- a/engines/agos/window.cpp +++ b/engines/agos/window.cpp @@ -196,9 +196,11 @@ void AGOSEngine::restoreBlock(uint h, uint w, uint y, uint x) { dst += y * _dxSurfacePitch; src += y * _dxSurfacePitch; + const uint8 paletteMod = (getGameType() == GType_ELVIRA1 && y >= 133) ? 16 : 0; + while (y < h) { for (i = x; i < w; i++) - dst[i] = src[i]; + dst[i] = src[i] + paletteMod; y++; dst += _dxSurfacePitch; src += _dxSurfacePitch; |