diff options
author | Paul Gilbert | 2019-08-11 20:53:48 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-08-11 20:53:48 -0700 |
commit | c06fd200bdfd05ed1a99791651f5a69722661ef0 (patch) | |
tree | b7724e65a189bac564ba2e3cad4d1b310092c8c1 /engines/glk/frotz | |
parent | 3582fe9a60834d08514018d22f1861cb5259096e (diff) | |
download | scummvm-rg350-c06fd200bdfd05ed1a99791651f5a69722661ef0.tar.gz scummvm-rg350-c06fd200bdfd05ed1a99791651f5a69722661ef0.tar.bz2 scummvm-rg350-c06fd200bdfd05ed1a99791651f5a69722661ef0.zip |
GLK: FROTZ: Properly erase window when Arthur intro finishes
Diffstat (limited to 'engines/glk/frotz')
-rw-r--r-- | engines/glk/frotz/windows.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/glk/frotz/windows.cpp b/engines/glk/frotz/windows.cpp index 9f7dd83fec..9f7e6917b4 100644 --- a/engines/glk/frotz/windows.cpp +++ b/engines/glk/frotz/windows.cpp @@ -217,6 +217,12 @@ void Window::setCursor() { void Window::clear() { if (_win) g_vm->glk_window_clear(_win); + + if (_windows->_background) { + Rect r(_properties[X_SIZE] * g_conf->_monoInfo._cellW, _properties[Y_SIZE] * g_conf->_monoInfo._cellH); + r.moveTo((_properties[X_POS] - 1) * g_conf->_monoInfo._cellW, (_properties[Y_POS] - 1) * g_conf->_monoInfo._cellH); + _windows->_background->fillRect(g_conf->_windowColor, r); + } } void Window::updateColors() { |