aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2010-06-09 14:16:00 +0000
committerFilippos Karapetis2010-06-09 14:16:00 +0000
commit32d7f7ddb09c908104dc83217aa08f6083189d17 (patch)
tree2dcb87997b9713bc55023c35c8e807edb2cb5f72 /engines
parentf770156dccff6ed5f1211cbe7676652897582ee9 (diff)
downloadscummvm-rg350-32d7f7ddb09c908104dc83217aa08f6083189d17.tar.gz
scummvm-rg350-32d7f7ddb09c908104dc83217aa08f6083189d17.tar.bz2
scummvm-rg350-32d7f7ddb09c908104dc83217aa08f6083189d17.zip
Disabled the mouse warping code, as it can be annoying in windowed mode
svn-id: r49542
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/cursor.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/sci/graphics/cursor.cpp b/engines/sci/graphics/cursor.cpp
index 8cc99c787c..14ab3fcdaf 100644
--- a/engines/sci/graphics/cursor.cpp
+++ b/engines/sci/graphics/cursor.cpp
@@ -258,12 +258,16 @@ void GfxCursor::kernelSetMacCursor(GuiResourceId viewNum, int loopNum, int celNu
}
void GfxCursor::setPosition(Common::Point pos) {
+ // This code has been disabled because it's annoying in windowed mode. The engine shouldn't move
+ // the mouse cursor whenever it wants, it interferes with other programs
+#if 0
if (!_upscaledHires) {
g_system->warpMouse(pos.x, pos.y);
} else {
_screen->adjustToUpscaledCoordinates(pos.y, pos.x);
g_system->warpMouse(pos.x, pos.y);
}
+#endif
}
Common::Point GfxCursor::getPosition() {
@@ -289,6 +293,9 @@ Common::Point GfxCursor::getPosition() {
}
void GfxCursor::refreshPosition() {
+ // This code has been disabled because it's annoying in windowed mode. The engine shouldn't move
+ // the mouse cursor whenever it wants, it interferes with other programs
+#if 0
bool clipped = false;
Common::Point mousePoint = getPosition();
@@ -311,6 +318,7 @@ void GfxCursor::refreshPosition() {
// FIXME: Do this only when mouse is grabbed?
if (clipped)
setPosition(mousePoint);
+#endif
}
void GfxCursor::kernelSetMoveZone(Common::Rect zone) {