aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle
diff options
context:
space:
mode:
authorStrangerke2013-06-28 08:21:04 +0200
committerStrangerke2013-06-28 08:21:04 +0200
commit22fada577628806c038371390c21192330f7fdae (patch)
treed444aed0d3c00f883ed731b311d82795c8759c36 /engines/mortevielle
parent67f08a36866f7455fe39de2514535695bdf2b541 (diff)
downloadscummvm-rg350-22fada577628806c038371390c21192330f7fdae.tar.gz
scummvm-rg350-22fada577628806c038371390c21192330f7fdae.tar.bz2
scummvm-rg350-22fada577628806c038371390c21192330f7fdae.zip
MORTEVIELLE: Rename displayStatusInDescriptionBar()
Diffstat (limited to 'engines/mortevielle')
-rw-r--r--engines/mortevielle/mortevielle.h2
-rw-r--r--engines/mortevielle/utils.cpp20
2 files changed, 13 insertions, 9 deletions
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();
}