aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/glk/frotz/windows.cpp6
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() {