diff options
author | Paul Gilbert | 2019-01-31 21:54:13 -0800 |
---|---|---|
committer | Paul Gilbert | 2019-01-31 21:54:34 -0800 |
commit | 688db9394c1ba43c7d48d52ebba5b7b467f8186c (patch) | |
tree | a114455d71147e4fa335140f0591f8b489809d7a /engines/glk/windows.cpp | |
parent | 69f91fafe40eb492230bfd61d16e2dbcd7286137 (diff) | |
download | scummvm-rg350-688db9394c1ba43c7d48d52ebba5b7b467f8186c.tar.gz scummvm-rg350-688db9394c1ba43c7d48d52ebba5b7b467f8186c.tar.bz2 scummvm-rg350-688db9394c1ba43c7d48d52ebba5b7b467f8186c.zip |
GLK: FROTZ: Fix writing transparently to header in Zork Zero
Diffstat (limited to 'engines/glk/windows.cpp')
-rw-r--r-- | engines/glk/windows.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/glk/windows.cpp b/engines/glk/windows.cpp index ff3a57b980..020b68f66d 100644 --- a/engines/glk/windows.cpp +++ b/engines/glk/windows.cpp @@ -602,9 +602,13 @@ void Window::requestLineEventUni(uint32 *buf, uint maxlen, uint initlen) { void Window::redraw() { if (Windows::_forceRedraw) { - uint color = Windows::_overrideBgSet ? g_conf->_windowColor : _bgColor; - int y0 = _yAdj ? _bbox.top - _yAdj : _bbox.top; - g_vm->_screen->fillRect(Rect(_bbox.left, y0, _bbox.right, _bbox.bottom), color); + PairWindow *parent = dynamic_cast<PairWindow *>(_parent); + + if (!parent || parent->_dir != winmethod_Arbitrary) { + uint color = Windows::_overrideBgSet ? g_conf->_windowColor : _bgColor; + int y0 = _yAdj ? _bbox.top - _yAdj : _bbox.top; + g_vm->_screen->fillRect(Rect(_bbox.left, y0, _bbox.right, _bbox.bottom), color); + } } } |