mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
MORTEVIELLE: alternatively we can make it local to delay()
This commit is contained in:
parent
6691f9d812
commit
a4d822f98a
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user