aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-03-02 23:33:00 +0100
committerWillem Jan Palenstijn2011-03-02 23:48:57 +0100
commit1ef1f3e67183b8b2f19bc9ba22b04d774381f9f9 (patch)
tree4532496f351842ef5241f63294feecf2a857f06c
parenta55179177ed3dff9ebb2ece424b41cc2c18ec9ce (diff)
downloadscummvm-rg350-1ef1f3e67183b8b2f19bc9ba22b04d774381f9f9.tar.gz
scummvm-rg350-1ef1f3e67183b8b2f19bc9ba22b04d774381f9f9.tar.bz2
scummvm-rg350-1ef1f3e67183b8b2f19bc9ba22b04d774381f9f9.zip
SCI: Call Graph(RedrawBox) from EndUpdate for SCI0/01
Confirmed this behaviour in KQ1sci, KQ4, Iceman, and that it isn't present in QfG2 and KQ5CD. This fixes the graphics glitch in KQ4 when falling down the stairs in room 61 (#3039775).
-rw-r--r--engines/sci/graphics/ports.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/graphics/ports.cpp b/engines/sci/graphics/ports.cpp
index 924ffaa7e7..d971b77f98 100644
--- a/engines/sci/graphics/ports.cpp
+++ b/engines/sci/graphics/ports.cpp
@@ -272,6 +272,9 @@ void GfxPorts::endUpdate(Window *wnd) {
updateWindow((Window *)*it);
}
+ if (getSciVersion() < SCI_VERSION_1_EGA_ONLY)
+ g_sci->_gfxPaint16->kernelGraphRedrawBox(_curPort->rect);
+
setPort(oldPort);
}