From a8835043f54daf54a2c03ccdb02f125a62a7ddcd Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 27 Apr 2016 21:01:12 -0400 Subject: TITANIC: PET Text is now partially showing --- engines/titanic/pet_control/pet_text.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines/titanic/pet_control') 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; -- cgit v1.2.3