diff options
Diffstat (limited to 'engines/sci/gui/gui.cpp')
-rw-r--r-- | engines/sci/gui/gui.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp index 8fe0243f41..f9660462eb 100644 --- a/engines/sci/gui/gui.cpp +++ b/engines/sci/gui/gui.cpp @@ -327,12 +327,11 @@ int16 SciGUI::onControl(byte screenMask, Common::Rect rect) { void SciGUI::moveCursor(int16 x, int16 y) { Common::Point newPos; - sciPort *curPort = _gfx->GetPort(); x += _windowMgr->_picWind->rect.left; y += _windowMgr->_picWind->rect.top; - newPos.x = CLIP<int16> (x, _windowMgr->_picWind->rect.left, _windowMgr->_picWind->rect.right - 1); - newPos.y = CLIP<int16> (y, _windowMgr->_picWind->rect.top, _windowMgr->_picWind->rect.bottom - 1); + newPos.x = CLIP<int16>(x, _windowMgr->_picWind->rect.left, _windowMgr->_picWind->rect.right - 1); + newPos.y = CLIP<int16>(y, _windowMgr->_picWind->rect.top, _windowMgr->_picWind->rect.bottom - 1); gfxop_set_pointer_position(_s->gfx_state, newPos); } |