From 22fada577628806c038371390c21192330f7fdae Mon Sep 17 00:00:00 2001 From: Strangerke Date: Fri, 28 Jun 2013 08:21:04 +0200 Subject: MORTEVIELLE: Rename displayStatusInDescriptionBar() --- engines/mortevielle/mortevielle.h | 2 +- engines/mortevielle/utils.cpp | 20 ++++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) (limited to 'engines') diff --git a/engines/mortevielle/mortevielle.h b/engines/mortevielle/mortevielle.h index a07af4269a..d4d57d84b7 100644 --- a/engines/mortevielle/mortevielle.h +++ b/engines/mortevielle/mortevielle.h @@ -448,7 +448,7 @@ private: void tsuiv(); void treg(int objId); void rechai(int &ch); - void fenat(char ans); + void displayStatusInDescriptionBar(char stat); public: Common::Point _prevPos; diff --git a/engines/mortevielle/utils.cpp b/engines/mortevielle/utils.cpp index bbafbcad66..a0b7cf3d5e 100644 --- a/engines/mortevielle/utils.cpp +++ b/engines/mortevielle/utils.cpp @@ -3001,7 +3001,7 @@ void MortevielleEngine::testKey(bool d) { bool click; _mouse.hideMouse(); - fenat('K'); + displayStatusInDescriptionBar('K'); // Wait for release from any key or mouse button while (keyPressed()) @@ -3247,7 +3247,7 @@ void MortevielleEngine::tfleche() { if (_num == 9999) return; - fenat(chr(152)); + displayStatusInDescriptionBar(chr(152)); bool inRect = false; do { touch = '\0'; @@ -3390,18 +3390,22 @@ int MortevielleEngine::checkLeaveSecretPassage() { return CELLAR; } -void MortevielleEngine::fenat(char ans) { - int coul; +/** + * Display status character in description bar + * @remarks Originally called 'fenat' + */ +void MortevielleEngine::displayStatusInDescriptionBar(char stat) { + int color; _mouse.hideMouse(); if (_currGraphicalDevice == MODE_CGA) - coul = 2; + color = 2; else if (_currGraphicalDevice == MODE_HERCULES) - coul = 1; + color = 1; else - coul = 12; + color = 12; - _screenSurface.writeCharacter(Common::Point(306, 193), ord(ans), coul); + _screenSurface.writeCharacter(Common::Point(306, 193), ord(stat), color); _screenSurface.drawBox(300, 191, 16, 8, 15); _mouse.showMouse(); } -- cgit v1.2.3