[Scummvm-cvs-logs] SF.net SVN: scummvm:[48994] scummvm/trunk/engines/cine/various.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Sun May 9 23:15:59 CEST 2010
Revision: 48994
http://scummvm.svn.sourceforge.net/scummvm/?rev=48994&view=rev
Author: sev
Date: 2010-05-09 21:15:58 +0000 (Sun, 09 May 2010)
Log Message:
-----------
Patch #2987340: GSoC: CINE: Hide cursor when viewing inventory
Modified Paths:
--------------
scummvm/trunk/engines/cine/various.cpp
Modified: scummvm/trunk/engines/cine/various.cpp
===================================================================
--- scummvm/trunk/engines/cine/various.cpp 2010-05-09 21:05:14 UTC (rev 48993)
+++ scummvm/trunk/engines/cine/various.cpp 2010-05-09 21:15:58 UTC (rev 48994)
@@ -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 @@
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 @@
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);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list