aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kevent.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2010-02-05 14:48:51 +0000
committerMartin Kiewitz2010-02-05 14:48:51 +0000
commitf8f490c565809c93ca35928210a740b6579fba19 (patch)
tree94c07530aa26dc845eb7d1731a18f8f8c0aeaa0d /engines/sci/engine/kevent.cpp
parent6c204cc890ed769f4d9268e80c6814c2eb95eb02 (diff)
downloadscummvm-rg350-f8f490c565809c93ca35928210a740b6579fba19.tar.gz
scummvm-rg350-f8f490c565809c93ca35928210a740b6579fba19.tar.bz2
scummvm-rg350-f8f490c565809c93ca35928210a740b6579fba19.zip
SCI: calling most of the cursor functions directly via _gfxCursor instead of SciGui/32
svn-id: r47903
Diffstat (limited to 'engines/sci/engine/kevent.cpp')
-rw-r--r--engines/sci/engine/kevent.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/engines/sci/engine/kevent.cpp b/engines/sci/engine/kevent.cpp
index 40ea736a8c..0224ecae90 100644
--- a/engines/sci/engine/kevent.cpp
+++ b/engines/sci/engine/kevent.cpp
@@ -47,12 +47,7 @@ reg_t kGetEvent(EngineState *s, int argc, reg_t *argv) {
SegManager *segMan = s->_segMan;
Common::Point mousePos;
-#ifdef ENABLE_SCI32
- if (s->_gui32)
- mousePos = s->_gui32->getCursorPos();
- else
-#endif
- mousePos = s->_gui->getCursorPos();
+ mousePos = s->_gfxCursor->getPosition();
// If there's a simkey pending, and the game wants a keyboard event, use the
// simkey instead of a normal event