From c9ba23f2b461c40c1b985faa4091c9363d20163c Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Tue, 15 Jun 2010 17:41:33 +0000 Subject: SCI: only set mouse position, when cursor is visible (fixes non-stop, but escapeable mouse position setting to 0, 0 in eco quest 1 floppy during intro) svn-id: r49874 --- engines/sci/graphics/cursor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'engines/sci/graphics/cursor.cpp') diff --git a/engines/sci/graphics/cursor.cpp b/engines/sci/graphics/cursor.cpp index 38e9d389a6..46bd981b7f 100644 --- a/engines/sci/graphics/cursor.cpp +++ b/engines/sci/graphics/cursor.cpp @@ -259,6 +259,13 @@ void GfxCursor::kernelSetMacCursor(GuiResourceId viewNum, int loopNum, int celNu } void GfxCursor::setPosition(Common::Point pos) { + // Don't set position, when cursor is not visible + // This fixes eco quest 1 (floppy) right at the start, which is setting mouse cursor to 0, 0 all the time during the + // intro. It's escapeable (now) by moving to the left or top, but it's getting on your nerves. + // This could theoretically break some things, although sierra normally sets position only when showing the cursor. + if (!_isVisible) + return; + if (!_upscaledHires) { g_system->warpMouse(pos.x, pos.y); } else { -- cgit v1.2.3