aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-07-18 23:29:12 +0200
committerThierry Crozat2018-01-23 00:00:11 +0000
commite0aa700daccc4381ef9d90ca5f1a50d4d3aae8ec (patch)
tree0f04e569d80db936dac7e63a503eb8776ef688f1 /engines/supernova
parent2a19f34bb5dd447c11a3aa99949eca35bc4ec629 (diff)
downloadscummvm-rg350-e0aa700daccc4381ef9d90ca5f1a50d4d3aae8ec.tar.gz
scummvm-rg350-e0aa700daccc4381ef9d90ca5f1a50d4d3aae8ec.tar.bz2
scummvm-rg350-e0aa700daccc4381ef9d90ca5f1a50d4d3aae8ec.zip
SUPERNOVA: Renames charcterWidth() to textWidth()
Diffstat (limited to 'engines/supernova')
-rw-r--r--engines/supernova/state.cpp2
-rw-r--r--engines/supernova/supernova.cpp4
-rw-r--r--engines/supernova/supernova.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp
index 37ff15f808..0b4b78fddd 100644
--- a/engines/supernova/state.cpp
+++ b/engines/supernova/state.cpp
@@ -209,7 +209,7 @@ void GameManager::initGui() {
for (int i = 0; i < ARRAYSIZE(_guiCommandButton); ++i) {
int width;
if (i < 9)
- width = _vm->characterWidth(guiCommand_DE[i]) + 2;
+ width = _vm->textWidth(guiCommand_DE[i]) + 2;
else
width = 320 - x;
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp
index c62efeac3f..678d5ce2bd 100644
--- a/engines/supernova/supernova.cpp
+++ b/engines/supernova/supernova.cpp
@@ -348,7 +348,7 @@ void SupernovaEngine::renderRoom(Room &room) {
}
}
-int SupernovaEngine::characterWidth(const char *text) {
+int SupernovaEngine::textWidth(const char *text) {
int charWidth = 0;
while (*text != '\0') {
byte c = *text++;
@@ -391,7 +391,7 @@ void SupernovaEngine::renderMessage(const char *text, MessagePosition position)
}
}
for (uint i = 0; i < numRows; ++i) {
- int rowWidth = characterWidth(row[i]);
+ int rowWidth = textWidth(row[i]);
if (rowWidth > rowWidthMax)
rowWidthMax = rowWidth;
}
diff --git a/engines/supernova/supernova.h b/engines/supernova/supernova.h
index 67c7067f4e..f8769c8b4b 100644
--- a/engines/supernova/supernova.h
+++ b/engines/supernova/supernova.h
@@ -107,7 +107,7 @@ public:
int _textColor;
int getDOSTicks();
- int characterWidth(const char *text);
+ int textWidth(const char *text);
void initData();
void initPalette();
void paletteFadeIn();