aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gui32
diff options
context:
space:
mode:
authorFilippos Karapetis2009-10-07 21:29:47 +0000
committerFilippos Karapetis2009-10-07 21:29:47 +0000
commit1562add63191c482acf99da61d6d8d1e2bf8903d (patch)
tree68d36e8e9219837a9febdb7791b572da9e7f3ed6 /engines/sci/gui32
parent80d136a362e667d4e8ff0754fe634eba30e0590a (diff)
downloadscummvm-rg350-1562add63191c482acf99da61d6d8d1e2bf8903d.tar.gz
scummvm-rg350-1562add63191c482acf99da61d6d8d1e2bf8903d.tar.bz2
scummvm-rg350-1562add63191c482acf99da61d6d8d1e2bf8903d.zip
- Cleaned up the cursor code
- Renamed gui -> _gui in EngineState, for consistency - Added a reference to SciGuiCursor in EngineState, to be used by current code - Renamed setCursorHide -> hideCursor, setCursorShow -> showCursor - Moved the cursor zone limiting code inside SciGuiCursor. This code is currently not functioning, as we need to call refreshPosition() before each updateScreen() call to limit the cursor position. svn-id: r44760
Diffstat (limited to 'engines/sci/gui32')
-rw-r--r--engines/sci/gui32/gui32.cpp4
-rw-r--r--engines/sci/gui32/gui32.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/gui32/gui32.cpp b/engines/sci/gui32/gui32.cpp
index 329d55db28..1d831273f4 100644
--- a/engines/sci/gui32/gui32.cpp
+++ b/engines/sci/gui32/gui32.cpp
@@ -2002,11 +2002,11 @@ void SciGui32::setNowSeen(reg_t objectReference) {
_k_set_now_seen(objectReference);
}
-void SciGui32::setCursorHide() {
+void SciGui32::hideCursor() {
CursorMan.showMouse(false);
}
-void SciGui32::setCursorShow() {
+void SciGui32::showCursor() {
CursorMan.showMouse(true);
}
diff --git a/engines/sci/gui32/gui32.h b/engines/sci/gui32/gui32.h
index f134e86fba..b944f44723 100644
--- a/engines/sci/gui32/gui32.h
+++ b/engines/sci/gui32/gui32.h
@@ -77,8 +77,8 @@ public:
void addToPicView(GuiResourceId viewId, GuiViewLoopNo loopNo, GuiViewCelNo celNo, int16 leftPos, int16 topPos, int16 priority, int16 control);
void setNowSeen(reg_t objectReference);
- void setCursorHide();
- void setCursorShow();
+ void hideCursor();
+ void showCursor();
void setCursorShape(GuiResourceId cursorId);
void setCursorPos(Common::Point pos);
void moveCursor(Common::Point pos);