diff options
author | Travis Howell | 2006-10-11 09:21:59 +0000 |
---|---|---|
committer | Travis Howell | 2006-10-11 09:21:59 +0000 |
commit | a8df97ede86e2d7bb87cbd8d5af109a7e878c3d0 (patch) | |
tree | 24a04ced358261f28066c074020c6de49be204b9 | |
parent | 08a2365695aafd9b21bb8304de7ac711f4dc697e (diff) | |
download | scummvm-rg350-a8df97ede86e2d7bb87cbd8d5af109a7e878c3d0.tar.gz scummvm-rg350-a8df97ede86e2d7bb87cbd8d5af109a7e878c3d0.tar.bz2 scummvm-rg350-a8df97ede86e2d7bb87cbd8d5af109a7e878c3d0.zip |
Fix palette display of lower part of screne in Elvira 1
svn-id: r24271
-rw-r--r-- | engines/agos/agos.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/agos/agos.cpp b/engines/agos/agos.cpp index 5c396455ad..7e8b561a31 100644 --- a/engines/agos/agos.cpp +++ b/engines/agos/agos.cpp @@ -1658,10 +1658,10 @@ void AGOSEngine::set_video_mode_internal(uint16 mode, uint16 vga_res_id) { uint num, num_lines; VgaPointersEntry *vpe; byte *bb, *b; - uint16 count; + uint16 count, updateWindow; const byte *vc_ptr_org; - _windowNum = mode; + _windowNum = updateWindow = mode; _lockWord |= 0x20; if (getGameType() == GType_FF || getGameType() == GType_PP) { @@ -1778,7 +1778,7 @@ void AGOSEngine::set_video_mode_internal(uint16 mode, uint16 vga_res_id) { runVgaScript(); _vcPtr = vc_ptr_org; - if (getGameType() == GType_ELVIRA1 && _windowNum == 3 && _bottomPalette != 0) { + if (getGameType() == GType_ELVIRA1 && updateWindow == 3 && _bottomPalette != 0) { byte *dst = getBackBuf() + 42560; int size = 21440; |