mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 12:48:16 +00:00
This is a bit of a hack: Before showing the mouse cursor, take care of any
pending events so that the it won't have to do a little dance, catching up, every time you enter a room. svn-id: r21316
This commit is contained in:
parent
5d0ac7d57c
commit
dc2143e6cf
@ -1775,8 +1775,13 @@ void Screen::hideMouse() {
|
||||
void Screen::showMouse() {
|
||||
debugC( 9, kDebugLevelScreen, "Screen::showMouse()");
|
||||
|
||||
if (_mouseLockCount == 1)
|
||||
if (_mouseLockCount == 1) {
|
||||
// HACK: Flush the event queue before showing the mouse, so
|
||||
// that the mouse cursor won't do a little dance catching
|
||||
// up with the mouse movements when entering a new room.
|
||||
_vm->delay(0);
|
||||
_system->showMouse(true);
|
||||
}
|
||||
|
||||
if (_mouseLockCount > 0)
|
||||
_mouseLockCount--;
|
||||
|
Loading…
x
Reference in New Issue
Block a user