mirror of
https://github.com/libretro/scummvm.git
synced 2025-05-13 09:36:21 +00:00
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.
This commit is contained in:
parent
17606700c4
commit
e26a677f62
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user