diff options
author | Travis Howell | 2007-05-07 08:47:40 +0000 |
---|---|---|
committer | Travis Howell | 2007-05-07 08:47:40 +0000 |
commit | e2c40aaee6282a8d4db82776242c41f1ff6b016c (patch) | |
tree | 4fd4c73fd18e941f3b880e711f91b8e21a1814cc /engines/agos | |
parent | 425bd5c13616850987400705cac94879ffecc590 (diff) | |
download | scummvm-rg350-e2c40aaee6282a8d4db82776242c41f1ff6b016c.tar.gz scummvm-rg350-e2c40aaee6282a8d4db82776242c41f1ff6b016c.tar.bz2 scummvm-rg350-e2c40aaee6282a8d4db82776242c41f1ff6b016c.zip |
Fix inventory palette glitches in Elvira 2.
svn-id: r26775
Diffstat (limited to 'engines/agos')
-rw-r--r-- | engines/agos/vga_e2.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/agos/vga_e2.cpp b/engines/agos/vga_e2.cpp index 5342d4c0d4..a85135a9d2 100644 --- a/engines/agos/vga_e2.cpp +++ b/engines/agos/vga_e2.cpp @@ -70,9 +70,14 @@ void AGOSEngine::vc45_setWindowPalette() { const uint16 *vlut = &_videoWindows[num * 4]; uint16 *dst = (uint16 *)getBackBuf() + vlut[0] * 8 + vlut[1] * _dxSurfacePitch / 2; + uint width = vlut[2] * 8; + + if (getGameType() == GType_ELVIRA2 && num == 7) { + dst -= 4; + width += 4; + } for (uint h = 0; h < vlut[3]; h++) { - uint width = vlut[2] * 8; for (uint w = 0; w < width; w++) { dst[w] &= 0xF0F; dst[w] |= color * 16; |