diff options
Diffstat (limited to 'engines/illusions/screentext.cpp')
-rw-r--r-- | engines/illusions/screentext.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/illusions/screentext.cpp b/engines/illusions/screentext.cpp index de664d635a..0f811df08d 100644 --- a/engines/illusions/screentext.cpp +++ b/engines/illusions/screentext.cpp @@ -101,13 +101,13 @@ bool ScreenText::refreshScreenText(FontResource *font, WidthHeight dimensions, C bool ScreenText::insertText(uint16 *text, uint32 fontId, WidthHeight dimensions, Common::Point offsPt, uint flags, uint16 backgroundColor, uint16 borderColor, byte colorR, byte colorG, byte colorB, uint16 *&outTextPtr) { - + if (!_screenTexts.empty()) { ScreenTextEntry *screenText = _screenTexts.back(); screenText->_info._position = _position; freeTextSurface(); } - + ScreenTextEntry *screenText = new ScreenTextEntry(); screenText->_info._fontId = fontId; screenText->_info._dimensions = dimensions; @@ -169,13 +169,13 @@ void ScreenText::removeText() { } void ScreenText::clearText() { - + if (!_screenTexts.empty()) { ScreenTextEntry *screenText = _screenTexts.back(); screenText->_info._position = _position; freeTextSurface(); } - + ScreenTextEntry *screenText = new ScreenTextEntry(); screenText->_info._fontId = 0; _screenTexts.push_back(screenText); |