[Scummvm-git-logs] scummvm master -> b18ecc697497b5c7db0758e00bbe1d1cc5ccea2c

dreammaster paulfgilbert at gmail.com
Mon Jun 29 02:32:51 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
b18ecc6974 GLK: ZCODE: Fix moving cursor in TextGridWindow


Commit: b18ecc697497b5c7db0758e00bbe1d1cc5ccea2c
    https://github.com/scummvm/scummvm/commit/b18ecc697497b5c7db0758e00bbe1d1cc5ccea2c
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2020-06-28T19:32:48-07:00

Commit Message:
GLK: ZCODE: Fix moving cursor in TextGridWindow

Changed paths:
    engines/glk/zcode/windows.cpp


diff --git a/engines/glk/zcode/windows.cpp b/engines/glk/zcode/windows.cpp
index d00f8b66fd..0e209f1cfe 100644
--- a/engines/glk/zcode/windows.cpp
+++ b/engines/glk/zcode/windows.cpp
@@ -228,8 +228,8 @@ void Window::setCursor(const Point &newPos) {
 
 void Window::setCursor() {
 	if (dynamic_cast<TextGridWindow *>(_win)) {
-		g_vm->glk_window_move_cursor(_win, (_properties[X_CURSOR] - 1) / g_vm->h_font_width,
-			(_properties[Y_CURSOR] - 1) / g_vm->h_font_height);
+		g_vm->glk_window_move_cursor(_win, (_properties[X_CURSOR] - 1),
+			(_properties[Y_CURSOR] - 1));
 	}
 }
 




More information about the Scummvm-git-logs mailing list