aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/frotz/windows.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2019-01-04 18:04:54 -0800
committerPaul Gilbert2019-01-04 18:04:54 -0800
commite655c50d17fdaea56567226187d0bf389047811a (patch)
treedc37db25c030b7930c139530ebadc0b1fb374ee9 /engines/glk/frotz/windows.cpp
parent18768f164a35d1d0d25da20f55c70f2c0d306b47 (diff)
downloadscummvm-rg350-e655c50d17fdaea56567226187d0bf389047811a.tar.gz
scummvm-rg350-e655c50d17fdaea56567226187d0bf389047811a.tar.bz2
scummvm-rg350-e655c50d17fdaea56567226187d0bf389047811a.zip
GLK: FROTZ: Simplified getting/setting window properties
Diffstat (limited to 'engines/glk/frotz/windows.cpp')
-rw-r--r--engines/glk/frotz/windows.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/glk/frotz/windows.cpp b/engines/glk/frotz/windows.cpp
index c1a4163a44..54f4c4aae0 100644
--- a/engines/glk/frotz/windows.cpp
+++ b/engines/glk/frotz/windows.cpp
@@ -110,15 +110,18 @@ void Window::setPosition(const Point &newPos) {
_win->setPosition(Point((newPos.x - 1) * g_conf->_monoInfo._cellW, (newPos.y - 1) * g_conf->_monoInfo._cellH));
}
-const uint16 &Window::getProperty(WindowProperty propType) {
+const zword &Window::getProperty(WindowProperty propType) {
if (_win)
update();
return _properties[propType];
}
-void Window::setProperty(WindowProperty propType, uint16 value) {
- // TODO
+void Window::setProperty(WindowProperty propType, zword value) {
+ switch (propType) {
+ default:
+ warning("Setting window property %d not yet supported", (int)propType);
+ }
}
void Window::checkRepositionLower() {