aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gui/gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/gui/gui.cpp')
-rw-r--r--engines/sci/gui/gui.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp
index d565d20c49..baca9e5005 100644
--- a/engines/sci/gui/gui.cpp
+++ b/engines/sci/gui/gui.cpp
@@ -737,6 +737,10 @@ void SciGui::setCursorPos(Common::Point pos) {
moveCursor(pos);
}
+Common::Point SciGui::getCursorPos() {
+ return _cursor->getPosition();
+}
+
void SciGui::moveCursor(Common::Point pos) {
pos.y += _windowMgr->_picWind->rect.top;
pos.x += _windowMgr->_picWind->rect.left;
@@ -756,6 +760,10 @@ void SciGui::moveCursor(Common::Point pos) {
// FIXME!
}
+void SciGui::setCursorZone(Common::Rect zone) {
+ _cursor->setMoveZone(zone);
+}
+
int16 SciGui::getCelWidth(GuiResourceId viewId, int16 loopNo, int16 celNo) {
return _gfx->getView(viewId)->getCelInfo(loopNo, celNo)->width;
}