From 5b166a517303b076478f21b108e1109b07e1a322 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sat, 22 Jul 2017 16:01:37 -0500 Subject: SCI32: Avoid extra cursor paints when the cursor has not moved --- engines/sci/graphics/cursor32.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engines/sci') diff --git a/engines/sci/graphics/cursor32.cpp b/engines/sci/graphics/cursor32.cpp index c626487970..feb62ee011 100644 --- a/engines/sci/graphics/cursor32.cpp +++ b/engines/sci/graphics/cursor32.cpp @@ -394,13 +394,14 @@ void GfxCursor32::deviceMoved(Common::Point &position) { restricted = true; } - _position = position; - if (restricted) { g_system->warpMouse(position.x, position.y); } - move(); + if (_position != position) { + _position = position; + move(); + } } void GfxCursor32::move() { -- cgit v1.2.3