GRAPHICS: MACGUI: Mark content as dirty when text is changed

This commit is contained in:
Eugene Sandulenko 2017-08-02 10:17:28 +02:00
parent 4897f6618b
commit 77932d5838

View file

@ -74,12 +74,16 @@ void MacTextWindow::drawText(ManagedSurface *g, int x, int y, int w, int h, int
void MacTextWindow::appendText(Common::String str, const MacFont *macFont) {
_mactext->appendText(str, macFont->getId(), macFont->getSize(), macFont->getSlant());
_contentIsDirty = true;
updateCursorPos();
}
void MacTextWindow::clearText() {
_mactext->clearText();
_contentIsDirty = true;
updateCursorPos();
}