diff options
| -rw-r--r-- | engines/dm/text.cpp | 17 | ||||
| -rw-r--r-- | engines/dm/text.h | 1 | 
2 files changed, 17 insertions, 1 deletions
| diff --git a/engines/dm/text.cpp b/engines/dm/text.cpp index 17531a1899..6e7ae5ed56 100644 --- a/engines/dm/text.cpp +++ b/engines/dm/text.cpp @@ -160,7 +160,7 @@ void TextMan::f46_messageAreaPrintString(Color color, const char* string) {  		f53_printToLogicalScreen(_g359_messageAreaCursorColumn * 6, (_g358_messageAreaCursorRow * 7 - 6) + 177, color, k0_ColorBlack, string);  	} else {  		f40_printTextToBitmap(_g356_bitmapMessageAreaNewRow, k160_byteWidthScreen, _g359_messageAreaCursorColumn * 6, 5, color, k0_ColorBlack, string, 7); -		if(f561_isTextScrolling(&_gK60_s_TextScroller, false)) +		if (f561_isTextScrolling(&_gK60_s_TextScroller, false))  			f560_SCROLLER_setCommand(&_gK60_s_TextScroller, 1);  	}  	_g359_messageAreaCursorColumn += L0030_i_StringLength; @@ -225,4 +225,19 @@ void TextMan::f443_endgamePrintString(int16 x, int16 y, Color textColor, char* t  	}  	f53_printToLogicalScreen(x, y, textColor, k12_ColorDarkestGray, L1408_ac_ModifiedString);  } + +void TextMan::f43_messageAreaClearAllRows() { +	int16 L0023_i_RowIndex; + +	f561_isTextScrolling(&_gK60_s_TextScroller, true); + +	Box tmpBox(0, 319, 169, 199); +	_vm->_displayMan->D24_fillScreenBox(tmpBox, k0_ColorBlack); +	 +	_g358_messageAreaCursorRow = 3; +	_g359_messageAreaCursorColumn = 0; +	for (L0023_i_RowIndex = 0; L0023_i_RowIndex < 4; L0023_i_RowIndex++) { +		_g360_messageAreaRowExpirationTime[L0023_i_RowIndex] = -1; +	} +}  } diff --git a/engines/dm/text.h b/engines/dm/text.h index b4eca1a06a..51be3b2e3b 100644 --- a/engines/dm/text.h +++ b/engines/dm/text.h @@ -66,6 +66,7 @@ public:  		warning(false, "STUB METHOD: f561_isTextScrolling"); return true;  	} // @ F0561_SCROLLER_IsTextScrolling  	void f560_SCROLLER_setCommand(TextScroller *scroller, int16 command) { warning(false, "STUB METHOD: f560_SCROLLER_setCommand");  } // @ F0560_SCROLLER_SetCommand +	void f43_messageAreaClearAllRows(); // @ F0043_TEXT_MESSAGEAREA_ClearAllRows  };  } | 
