aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/hugo.cpp
diff options
context:
space:
mode:
authorArnaud Boutonné2011-01-08 16:56:52 +0000
committerArnaud Boutonné2011-01-08 16:56:52 +0000
commit2665194e6feb99af15937003d2e89e9e0f87b446 (patch)
treeb8aa548ffa7e87356b47be87e8b26b39826c2538 /engines/hugo/hugo.cpp
parentb24aab30527feb67f32e0f7a43dc8be4eb0fc0da (diff)
downloadscummvm-rg350-2665194e6feb99af15937003d2e89e9e0f87b446.tar.gz
scummvm-rg350-2665194e6feb99af15937003d2e89e9e0f87b446.tar.bz2
scummvm-rg350-2665194e6feb99af15937003d2e89e9e0f87b446.zip
HUGO: Merge inventory object and mouse cursor when selected
- Merge inventory object and mouse cursor into a new mouse cursor (looks better) - Use 16 color mouse pointer - Clean-up svn-id: r55167
Diffstat (limited to 'engines/hugo/hugo.cpp')
-rw-r--r--engines/hugo/hugo.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/hugo/hugo.cpp b/engines/hugo/hugo.cpp
index db0d7d5995..c583cb2bad 100644
--- a/engines/hugo/hugo.cpp
+++ b/engines/hugo/hugo.cpp
@@ -28,7 +28,6 @@
#include "common/events.h"
#include "common/EventRecorder.h"
#include "common/debug-channels.h"
-#include "graphics/cursorman.h"
#include "hugo/hugo.h"
#include "hugo/global.h"
@@ -261,8 +260,8 @@ Common::Error HugoEngine::run() {
return Common::kUnknownError;
/* Use Windows-looking mouse cursor */
- CursorMan.replaceCursorPalette(stdMouseCursorPalette, 1, ARRAYSIZE(stdMouseCursorPalette) / 4);
- CursorMan.replaceCursor(stdMouseCursor, stdMousrCursorWidth, stdMousrCursorHeight, 1, 1, 0);
+ _screen->setCursorPal();
+ _screen->resetInventoryObjId();
initStatus(); // Initialize game status
initConfig(INSTALL); // Initialize user's config
@@ -355,7 +354,7 @@ void HugoEngine::runMachine() {
switch (gameStatus.viewState) {
case V_IDLE: // Not processing state machine
- CursorMan.showMouse(false);
+ _screen->hideCursor();
_intro->preNewGame(); // Any processing before New Game selected
break;
case V_INTROINIT: // Initialization before intro begins
@@ -369,7 +368,7 @@ void HugoEngine::runMachine() {
}
break;
case V_PLAY: // Playing game
- CursorMan.showMouse(true);
+ _screen->showCursor();
_parser->charHandler(); // Process user cmd input
_object->moveObjects(); // Process object movement
_scheduler->runScheduler(); // Process any actions