aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorMartin Kiewitz2010-02-05 21:09:36 +0000
committerMartin Kiewitz2010-02-05 21:09:36 +0000
commitf9673182254d2a3ea4bb770ce031d89985c8cba9 (patch)
treef79a2408d9b051a7b478486b996d764e878c9554 /engines/sci/engine
parent16efee3c0df7e796b21ec198064a8499d2a28dac (diff)
downloadscummvm-rg350-f9673182254d2a3ea4bb770ce031d89985c8cba9.tar.gz
scummvm-rg350-f9673182254d2a3ea4bb770ce031d89985c8cba9.tar.bz2
scummvm-rg350-f9673182254d2a3ea4bb770ce031d89985c8cba9.zip
SCI: remaining cursor functions now also directly called
svn-id: r47914
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/kgraphics.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index a41a536d63..e48abd0cc6 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -101,7 +101,7 @@ static reg_t kSetCursorSci0(EngineState *s, int argc, reg_t *argv) {
if (argc >= 4) {
pos.y = argv[3].toSint16();
pos.x = argv[2].toSint16();
- s->_gui->setCursorPos(pos);
+ s->_gfxCursor->kernelSetPos(pos);
}
if ((argc >= 2) && (argv[1].toSint16() == 0)) {
@@ -136,12 +136,7 @@ static reg_t kSetCursorSci11(EngineState *s, int argc, reg_t *argv) {
pos.y = argv[1].toSint16();
pos.x = argv[0].toSint16();
-#ifdef ENABLE_SCI32
- if (s->_gui32)
- s->_gui32->setCursorPos(pos);
- else
-#endif
- s->_gui->setCursorPos(pos);
+ s->_gfxCursor->kernelSetPos(pos);
break;
case 4: {
int16 top = argv[0].toSint16();
@@ -151,12 +146,7 @@ static reg_t kSetCursorSci11(EngineState *s, int argc, reg_t *argv) {
if ((right >= left) && (bottom >= top)) {
Common::Rect rect = Common::Rect(left, top, right, bottom);
-#ifdef ENABLE_SCI32
- if (s->_gui32)
- s->_gui32->setCursorZone(rect);
- else
-#endif
- s->_gui->setCursorZone(rect);
+ s->_gfxCursor->kernelSetMoveZone(rect);
} else {
warning("kSetCursor: Ignoring invalid mouse zone (%i, %i)-(%i, %i)", left, top, right, bottom);
}
@@ -193,7 +183,7 @@ reg_t kMoveCursor(EngineState *s, int argc, reg_t *argv) {
if (argc == 2) {
pos.y = argv[1].toSint16();
pos.x = argv[0].toSint16();
- s->_gui->setCursorPos(pos);
+ s->_gfxCursor->kernelSetPos(pos);
}
return s->r_acc;
}