aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2009-06-29 23:14:35 +0000
committerJohannes Schickel2009-06-29 23:14:35 +0000
commit267efdc8742fb64e72bc50e78e1d719451f2144e (patch)
tree6651579d2c2374969ab60fb30dadafd7db1d2c3f /engines
parent18940ffd46b93577265b8853979fdbca9b52b3ad (diff)
downloadscummvm-rg350-267efdc8742fb64e72bc50e78e1d719451f2144e.tar.gz
scummvm-rg350-267efdc8742fb64e72bc50e78e1d719451f2144e.tar.bz2
scummvm-rg350-267efdc8742fb64e72bc50e78e1d719451f2144e.zip
Fix invisible mouse cursor, when picking up items.
svn-id: r41967
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/screen.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp
index 7f10fb6a5b..fa54bffa98 100644
--- a/engines/kyra/screen.cpp
+++ b/engines/kyra/screen.cpp
@@ -2588,9 +2588,14 @@ void Screen::hideMouse() {
}
void Screen::showMouse() {
- if (_mouseLockCount == 1)
+ if (_mouseLockCount == 1) {
CursorMan.showMouse(true);
+ // We need to call OSystem::updateScreen here, else the mouse cursor
+ // will only be visible on mouse movment.
+ _system->updateScreen();
+ }
+
if (_mouseLockCount > 0)
_mouseLockCount--;
}