diff options
author | Strangerke | 2013-06-28 08:21:04 +0200 |
---|---|---|
committer | Strangerke | 2013-06-28 08:21:04 +0200 |
commit | 22fada577628806c038371390c21192330f7fdae (patch) | |
tree | d444aed0d3c00f883ed731b311d82795c8759c36 /engines/mortevielle/utils.cpp | |
parent | 67f08a36866f7455fe39de2514535695bdf2b541 (diff) | |
download | scummvm-rg350-22fada577628806c038371390c21192330f7fdae.tar.gz scummvm-rg350-22fada577628806c038371390c21192330f7fdae.tar.bz2 scummvm-rg350-22fada577628806c038371390c21192330f7fdae.zip |
MORTEVIELLE: Rename displayStatusInDescriptionBar()
Diffstat (limited to 'engines/mortevielle/utils.cpp')
-rw-r--r-- | engines/mortevielle/utils.cpp | 20 |
1 files changed, 12 insertions, 8 deletions
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(); } |