diff options
author | Colin Snover | 2017-09-13 00:51:02 -0500 |
---|---|---|
committer | Colin Snover | 2017-10-15 19:03:09 -0500 |
commit | e26a677f6214a1c88d63a41e136dc78ad07cca11 (patch) | |
tree | a11d82bd4411287963ceceef5cc82f23a70c0953 | |
parent | 17606700c49b056b655f1d7e3d4a39c707520f24 (diff) | |
download | scummvm-rg350-e26a677f6214a1c88d63a41e136dc78ad07cca11.tar.gz scummvm-rg350-e26a677f6214a1c88d63a41e136dc78ad07cca11.tar.bz2 scummvm-rg350-e26a677f6214a1c88d63a41e136dc78ad07cca11.zip |
SCI32: Tell OSystem to show/hide cursors as appropriate
This is needed so that the system cursor can be appropriately
hidden outside the game's draw area, to match the normal behaviour
of ScummVM.
-rw-r--r-- | engines/sci/graphics/cursor32.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/graphics/cursor32.cpp b/engines/sci/graphics/cursor32.cpp index f401d1ba80..a189f7405d 100644 --- a/engines/sci/graphics/cursor32.cpp +++ b/engines/sci/graphics/cursor32.cpp @@ -57,6 +57,7 @@ void GfxCursor32::hide() { return; } + g_system->showMouse(false); if (!_cursorBack.rect.isEmpty()) { drawToScreen(_cursorBack); } @@ -136,12 +137,14 @@ void GfxCursor32::unhide() { return; } + g_system->showMouse(true); _cursor.rect.moveTo(_position.x - _hotSpot.x, _position.y - _hotSpot.y); revealCursor(); } void GfxCursor32::show() { if (_hideCount) { + g_system->showMouse(true); _hideCount = 0; _cursor.rect.moveTo(_position.x - _hotSpot.x, _position.y - _hotSpot.y); revealCursor(); |