aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2006-04-05 11:44:46 +0000
committerEugene Sandulenko2006-04-05 11:44:46 +0000
commit58c7f8d6b1f6092e92bd82cf11af28b59d9ee5c2 (patch)
tree7e2f2a825f5d7ecd351241ac83a2e1eef48fc884
parent25e19148bd46958a90a3c333da30aeb71b0c43d8 (diff)
downloadscummvm-rg350-58c7f8d6b1f6092e92bd82cf11af28b59d9ee5c2.tar.gz
scummvm-rg350-58c7f8d6b1f6092e92bd82cf11af28b59d9ee5c2.tar.bz2
scummvm-rg350-58c7f8d6b1f6092e92bd82cf11af28b59d9ee5c2.zip
Fix character spacing in text blurbs.
svn-id: r21629
-rw-r--r--engines/cine/various.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cine/various.cpp b/engines/cine/various.cpp
index 8c2f3b9cdc..50e75c0b98 100644
--- a/engines/cine/various.cpp
+++ b/engines/cine/various.cpp
@@ -2201,7 +2201,7 @@ uint16 computeMessageLength(byte *ptr, uint16 width, uint16 *numWords, uint16 *m
si = 0;
} else {
if (fontParamTable[character].characterWidth) {
- uint16 var_C = fontParamTable[character].characterWidth;
+ uint16 var_C = fontParamTable[character].characterWidth + 1;
if (si + var_C < width) {
si += var_C;
@@ -2305,7 +2305,7 @@ void drawDialogueMessage(byte msgIdx, int16 x, int16 y, int16 width, int16 color
if (characterWidth) {
byte characterIdx = fontParamTable[currentChar].characterIdx;
drawSpriteRaw(textTable[characterIdx][0], textTable[characterIdx][1], 2, 8, page1Raw, localX, localY);
- localX += characterWidth;
+ localX += characterWidth + 1;
}
}
} while ((messagePtr < endOfMessagePtr) && !endOfMessageReached);