MORTEVIELLE: alternatively we can make it local to delay()

This commit is contained in:
Chris Apers 2015-01-24 14:03:22 +01:00
parent 6691f9d812
commit a4d822f98a
2 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ void MouseHandler::initMouse() {
* @remarks Originally called 'hide_mouse'
*/
void MouseHandler::hideMouse() {
g_system->showMouse(false);
// No implementation needed in ScummVM
}
/**
@ -59,7 +59,7 @@ void MouseHandler::hideMouse() {
* @remarks Originally called 'show_mouse'
*/
void MouseHandler::showMouse() {
g_system->showMouse(true);
// ScummVM implementation uses CursorMan for drawing the cursor
}
/**

View File

@ -234,7 +234,7 @@ void MortevielleEngine::setMousePos(const Common::Point &pt) {
void MortevielleEngine::delay(int amount) {
uint32 endTime = g_system->getMillis() + amount;
_mouse->hideMouse();
g_system->showMouse(false);
while (g_system->getMillis() < endTime) {
if (g_system->getMillis() > (_lastGameFrame + GAME_FRAME_DELAY)) {
_lastGameFrame = g_system->getMillis();
@ -245,7 +245,7 @@ void MortevielleEngine::delay(int amount) {
g_system->delayMillis(10);
}
_mouse->showMouse();
g_system->showMouse(true);
}
/**