aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_text.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/pet_control/pet_text.cpp')
-rw-r--r--engines/titanic/pet_control/pet_text.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/titanic/pet_control/pet_text.cpp b/engines/titanic/pet_control/pet_text.cpp
index 77019d7f2d..3a10ab4c87 100644
--- a/engines/titanic/pet_control/pet_text.cpp
+++ b/engines/titanic/pet_control/pet_text.cpp
@@ -140,7 +140,7 @@ void CPetText::draw(CScreenManager *screenManager) {
tempRect.grow(-2);
screenManager->setFontNumber(_fontNumber2);
- screenManager->writeString(0, tempRect, _field74, _lines, _textCursor);
+ screenManager->writeString(SURFACE_BACKBUFFER, tempRect, _field74, _lines, _textCursor);
screenManager->setFontNumber(_fontNumber1);
}
@@ -149,11 +149,10 @@ void CPetText::mergeStrings() {
if (!_stringsMerged) {
_lines.clear();
- for (int idx = 0; idx < _lineCount; ++idx) {
+ for (int idx = 0; idx <= _lineCount; ++idx) {
CString line = _array[idx]._rgb + _array[idx]._string3 +
_array[idx]._line + "\n";
_lines += line;
-
}
_stringsMerged = true;