aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-27 21:01:12 -0400
committerPaul Gilbert2016-07-10 16:12:11 -0400
commita8835043f54daf54a2c03ccdb02f125a62a7ddcd (patch)
tree66f932d9d83e917ed9798c4817d6942744c12a12 /engines/titanic/pet_control
parent2675580208561c8c8bd9d6908a202006ddf195b7 (diff)
downloadscummvm-rg350-a8835043f54daf54a2c03ccdb02f125a62a7ddcd.tar.gz
scummvm-rg350-a8835043f54daf54a2c03ccdb02f125a62a7ddcd.tar.bz2
scummvm-rg350-a8835043f54daf54a2c03ccdb02f125a62a7ddcd.zip
TITANIC: PET Text is now partially showing
Diffstat (limited to 'engines/titanic/pet_control')
-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;