From 00788185497e3b5a58da8cec5068585a0becd932 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sun, 9 May 2010 21:15:58 +0000 Subject: Patch #2987340: GSoC: CINE: Hide cursor when viewing inventory svn-id: r48994 --- engines/cine/various.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/cine') 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); } } -- cgit v1.2.3