diff options
| author | Le Philousophe | 2019-03-09 01:28:35 +0100 | 
|---|---|---|
| committer | Eugene Sandulenko | 2019-06-01 22:43:48 +0200 | 
| commit | 769f8d46ef3c58847969cf772e38c98a062b7267 (patch) | |
| tree | e49009bb87ae415653ca6ce22340d8fda2faa0de | |
| parent | 92a306e56ea52e8601f71ce966e7851ae80f5157 (diff) | |
| download | scummvm-rg350-769f8d46ef3c58847969cf772e38c98a062b7267.tar.gz scummvm-rg350-769f8d46ef3c58847969cf772e38c98a062b7267.tar.bz2 scummvm-rg350-769f8d46ef3c58847969cf772e38c98a062b7267.zip  | |
CRYOMNI3D: Fix cursor not shown in some events
| -rw-r--r-- | engines/cryomni3d/versailles/engine.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
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  }  | 
