aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gui32/gui32.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/gui32/gui32.cpp')
-rw-r--r--engines/sci/gui32/gui32.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/sci/gui32/gui32.cpp b/engines/sci/gui32/gui32.cpp
index 2248a58455..4fdffe3267 100644
--- a/engines/sci/gui32/gui32.cpp
+++ b/engines/sci/gui32/gui32.cpp
@@ -23,6 +23,7 @@
*
*/
+#include "graphics/cursorman.h"
#include "common/util.h"
#include "sci/sci.h"
@@ -2002,6 +2003,21 @@ void SciGui32::setNowSeen(reg_t objectReference) {
_k_set_now_seen(objectReference);
}
+void SciGui32::setCursorHide() {
+ CursorMan.showMouse(false);
+}
+
+void SciGui32::setCursorShow() {
+ CursorMan.showMouse(true);
+}
+
+void SciGui32::setCursorShape(GuiResourceId cursorId) {
+ if (cursorId == -1)
+ gfxop_set_pointer_cursor(s->gfx_state, GFXOP_NO_POINTER);
+ else
+ gfxop_set_pointer_cursor(s->gfx_state, cursorId);
+}
+
void SciGui32::setCursorPos(Common::Point pos) {
pos.y += s->port->_bounds.y;
pos.x += s->port->_bounds.x;