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
This commit is contained in:
parent
34d8196334
commit
c9ba23f2b4
1 changed files with 7 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue