From 769f8d46ef3c58847969cf772e38c98a062b7267 Mon Sep 17 00:00:00 2001 From: Le Philousophe Date: Sat, 9 Mar 2019 01:28:35 +0100 Subject: CRYOMNI3D: Fix cursor not shown in some events --- engines/cryomni3d/versailles/engine.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines') diff --git a/engines/cryomni3d/versailles/engine.cpp b/engines/cryomni3d/versailles/engine.cpp index 3192aa6182..235a923100 100644 --- a/engines/cryomni3d/versailles/engine.cpp +++ b/engines/cryomni3d/versailles/engine.cpp @@ -1286,7 +1286,7 @@ void CryOmni3DEngine_Versailles::animateCursor(const Object *obj) { return; } - g_system->showMouse(true); + bool cursorWasVisible = g_system->showMouse(true); for (unsigned int i = 4; i > 0; i--) { // Wait 100ms @@ -1307,7 +1307,7 @@ void CryOmni3DEngine_Versailles::animateCursor(const Object *obj) { g_system->updateScreen(); } - g_system->showMouse(false); + g_system->showMouse(cursorWasVisible); } void CryOmni3DEngine_Versailles::collectObject(unsigned int nameID, const ZonFixedImage *fimg, @@ -1360,7 +1360,7 @@ void CryOmni3DEngine_Versailles::displayObject(const Common::String &imgName, setMousePos(Common::Point(320, 240)); // Center of screen setCursor(181); - g_system->showMouse(true); + bool cursorWasVisible = g_system->showMouse(true); bool exitImg = false; while (!g_engine->shouldQuit() && !exitImg) { @@ -1374,7 +1374,7 @@ void CryOmni3DEngine_Versailles::displayObject(const Common::String &imgName, waitMouseRelease(); clearKeys(); - g_system->showMouse(false); + g_system->showMouse(cursorWasVisible); setMousePos(Common::Point(320, 240)); // Center of screen } -- cgit v1.2.3