diff options
author | Colin Snover | 2017-07-22 16:01:37 -0500 |
---|---|---|
committer | Colin Snover | 2017-07-23 10:35:13 -0500 |
commit | 5b166a517303b076478f21b108e1109b07e1a322 (patch) | |
tree | 47b8bb60d89fff8b9a781478bb1786e46299eac2 /engines/sci | |
parent | 9f33f2b3df22a26314dbb74173f49bc930c7a1f9 (diff) | |
download | scummvm-rg350-5b166a517303b076478f21b108e1109b07e1a322.tar.gz scummvm-rg350-5b166a517303b076478f21b108e1109b07e1a322.tar.bz2 scummvm-rg350-5b166a517303b076478f21b108e1109b07e1a322.zip |
SCI32: Avoid extra cursor paints when the cursor has not moved
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/graphics/cursor32.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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() { |