aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/frotz/windows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/frotz/windows.cpp')
-rw-r--r--engines/glk/frotz/windows.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/glk/frotz/windows.cpp b/engines/glk/frotz/windows.cpp
index 0e60365807..e94a345f4b 100644
--- a/engines/glk/frotz/windows.cpp
+++ b/engines/glk/frotz/windows.cpp
@@ -105,6 +105,17 @@ void Window::update() {
_properties[FONT_SIZE] = g_conf->_monoInfo._size;
}
+Window &Window::operator=(winid_t win) {
+ _win = win;
+
+ // Set the screen colors
+ if (win)
+ win->_stream->setZColors(g_vm->_defaultForeground, g_vm->_defaultBackground);
+
+ return *this;
+}
+
+
void Window::setSize(const Point &newSize) {
checkRepositionLower();
@@ -149,6 +160,10 @@ void Window::setCursor(const Point &newPos) {
g_vm->glk_window_move_cursor(_win, x - 1, y - 1);
}
+void Window::clear() {
+ if (_win)
+ g_vm->glk_window_clear(_win);
+}
const uint &Window::getProperty(WindowProperty propType) {
if (_win)