Skip to content

Commit

Permalink
GRAPHICS: More fixes to MacText formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 31, 2017
1 parent 89e8bdc commit 0884aee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions graphics/macgui/mactext.cpp
Expand Up @@ -128,6 +128,8 @@ void MacText::splitString(Common::String &str) {

_text[curLine] += text[0];

nextChunk = false;

continue;
}

Expand All @@ -140,6 +142,10 @@ void MacText::splitString(Common::String &str) {
(_textLines[curLine])[0].text = text[i];
curChunk = 0;
}
} else {
if (nextChunk) { // No text, replacing formatting
(_textLines[curLine])[curChunk] = _currentFormatting;
}
}

if (!nextChunk) // Don't skip next character
Expand Down

0 comments on commit 0884aee

Please sign in to comment.