mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 11:20:56 +00:00
GLK: FROTZ: Fix getting cursor position for non V6 games
This commit is contained in:
parent
c9a9461d3c
commit
7ee0f4d593
@ -89,8 +89,8 @@ void Window::update() {
|
||||
_properties[Y_SIZE] = _win->_bbox.height() / g_conf->_monoInfo._cellH;
|
||||
|
||||
Point pt = _win->getCursor();
|
||||
_properties[X_CURSOR] = pt.x / g_conf->_monoInfo._cellW + 1;
|
||||
_properties[Y_CURSOR] = pt.y / g_conf->_monoInfo._cellH + 1;
|
||||
_properties[X_CURSOR] = (g_vm->h_version != V6) ? pt.x + 1 : pt.x / g_conf->_monoInfo._cellW + 1;
|
||||
_properties[Y_CURSOR] = (g_vm->h_version != V6) ? pt.y + 1 : pt.y / g_conf->_monoInfo._cellH + 1;
|
||||
|
||||
TextBufferWindow *win = dynamic_cast<TextBufferWindow *>(_win);
|
||||
_properties[LEFT_MARGIN] = (win ? win->_ladjw : 0) / g_conf->_monoInfo._cellW;
|
||||
|
Loading…
Reference in New Issue
Block a user