aboutsummaryrefslogtreecommitdiff
path: root/engines/glk
diff options
context:
space:
mode:
authorPaul Gilbert2019-08-14 18:44:09 -0700
committerPaul Gilbert2019-08-16 18:26:27 -0700
commit5c5814d544220d5539691a87fa764e354a610e88 (patch)
tree16f75c98f301a56dfc0e9637b14b049ae736a179 /engines/glk
parent43af0a3bb0d422135dc17fca7645f028dd69181c (diff)
downloadscummvm-rg350-5c5814d544220d5539691a87fa764e354a610e88.tar.gz
scummvm-rg350-5c5814d544220d5539691a87fa764e354a610e88.tar.bz2
scummvm-rg350-5c5814d544220d5539691a87fa764e354a610e88.zip
GLK: FROTZ: Only call Glk move cursor for Glk text grid windows
Diffstat (limited to 'engines/glk')
-rw-r--r--engines/glk/frotz/windows.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/glk/frotz/windows.cpp b/engines/glk/frotz/windows.cpp
index 9f7e6917b4..738bb43e2d 100644
--- a/engines/glk/frotz/windows.cpp
+++ b/engines/glk/frotz/windows.cpp
@@ -211,7 +211,8 @@ void Window::setCursor(const Point &newPos) {
}
void Window::setCursor() {
- g_vm->glk_window_move_cursor(_win, _properties[X_CURSOR] - 1, _properties[Y_CURSOR] - 1);
+ if (dynamic_cast<TextGridWindow *>(_win))
+ g_vm->glk_window_move_cursor(_win, _properties[X_CURSOR] - 1, _properties[Y_CURSOR] - 1);
}
void Window::clear() {