aboutsummaryrefslogtreecommitdiff
path: root/engines/cine
diff options
context:
space:
mode:
authorEugene Sandulenko2010-05-09 21:15:58 +0000
committerEugene Sandulenko2010-05-09 21:15:58 +0000
commit00788185497e3b5a58da8cec5068585a0becd932 (patch)
treebc6a849ea64499dde5c219006f5dcd97453b4af4 /engines/cine
parent4eba9581b7809f0142dac65c4faca6f68adc3460 (diff)
downloadscummvm-rg350-00788185497e3b5a58da8cec5068585a0becd932.tar.gz
scummvm-rg350-00788185497e3b5a58da8cec5068585a0becd932.tar.bz2
scummvm-rg350-00788185497e3b5a58da8cec5068585a0becd932.zip
Patch #2987340: GSoC: CINE: Hide cursor when viewing inventory
svn-id: r48994
Diffstat (limited to 'engines/cine')
-rw-r--r--engines/cine/various.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/cine/various.cpp b/engines/cine/various.cpp
index 3f9d739673..be34d8c5d7 100644
--- a/engines/cine/various.cpp
+++ b/engines/cine/various.cpp
@@ -27,6 +27,8 @@
#include "common/endian.h"
#include "common/events.h"
+#include "graphics/cursorman.h"
+
#include "cine/cine.h"
#include "cine/main_loop.h"
#include "cine/object.h"
@@ -525,8 +527,6 @@ void processInventory(int16 x, int16 y) {
manageEvents();
getMouseData(mouseUpdateStatus, &button, &dummyU16, &dummyU16);
} while (button);
-
- // TODO: Both Future Wars and Operation Stealth call showMouse, drawMouse or something similar here.
}
int16 buildObjectListCommand(int16 param) {
@@ -628,10 +628,12 @@ void makeCommandLine() {
if (g_cine->getGameType() == Cine::GType_OS || !(playerCommand != -1 && choiceResultTable[playerCommand] == 2)) {
if (playerCommand == 2) {
getMouseData(mouseUpdateStatus, &dummyU16, &x, &y);
+ CursorMan.showMouse(false);
processInventory(x, y + 8);
playerCommand = -1;
commandVar1 = 0;
commandBuffer = "";
+ CursorMan.showMouse(true);
}
}