aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-06 14:26:44 -0500
committerPaul Gilbert2016-11-06 14:26:44 -0500
commit927adb7f05e06ecc3a6303dbc2437e8b8f45dd70 (patch)
treeca341a91ab28311097b1fcdd9cb70fe10d88a6a7 /engines/titanic/pet_control
parentd349e911b8f87438ad7ba7dd270102df60aa061f (diff)
downloadscummvm-rg350-927adb7f05e06ecc3a6303dbc2437e8b8f45dd70.tar.gz
scummvm-rg350-927adb7f05e06ecc3a6303dbc2437e8b8f45dd70.tar.bz2
scummvm-rg350-927adb7f05e06ecc3a6303dbc2437e8b8f45dd70.zip
TITANIC: Fix word wrapping in the conversation log
Diffstat (limited to 'engines/titanic/pet_control')
-rw-r--r--engines/titanic/pet_control/pet_text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_text.cpp b/engines/titanic/pet_control/pet_text.cpp
index 3ad14d0d5e..c7c6f490db 100644
--- a/engines/titanic/pet_control/pet_text.cpp
+++ b/engines/titanic/pet_control/pet_text.cpp
@@ -296,7 +296,7 @@ int CPetText::getTextWidth(CScreenManager *screenManager) {
int CPetText::getTextHeight(CScreenManager *screenManager) {
mergeStrings();
int oldFontNumber = screenManager->setFontNumber(_fontNumber);
- int textHeight = screenManager->getTextBounds(_lines, _bounds.width());
+ int textHeight = screenManager->getTextBounds(_lines, _bounds.width() - 4);
screenManager->setFontNumber(oldFontNumber);
return textHeight;