diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp index 407637e728e..98e382cdab2 100644 --- a/graphics/macgui/mactext.cpp +++ b/graphics/macgui/mactext.cpp @@ -1123,7 +1123,7 @@ void MacText::appendText_(const Common::U32String &strWithFont, uint oldLen) { _contentIsDirty = true; if (_editable) { - _scrollPos = MAX(0, getTextHeight() - getDimensions().height()); + _scrollPos = MAX(0, getTextHeight() - getDimensions().height()); _cursorRow = getLineCount(); _cursorCol = getLineCharWidth(_cursorRow); @@ -1749,7 +1749,7 @@ void MacText::scroll(int delta) { if (_editable) _scrollPos = CLIP(_scrollPos, 0, MacText::getTextHeight() - kConScrollStep); else - _scrollPos = CLIP(_scrollPos, 0, MAX(0, MacText::getTextHeight() - getDimensions().height())); + _scrollPos = CLIP(_scrollPos, 0, MAX(0, MacText::getTextHeight() - getDimensions().height())); undrawCursor(); _cursorY -= (_scrollPos - oldScrollPos); diff --git a/graphics/macgui/mactextwindow.cpp b/graphics/macgui/mactextwindow.cpp index 399f2f854d3..b139c056481 100644 --- a/graphics/macgui/mactextwindow.cpp +++ b/graphics/macgui/mactextwindow.cpp @@ -131,7 +131,7 @@ void MacTextWindow::appendText(const Common::U32String &str, const MacFont *macF _inputIsDirty = true; //force it to redraw input if (_editable) { - _scrollPos = MAX(0, _mactext->getTextHeight() - getInnerDimensions().height()); + _scrollPos = MAX(0, _mactext->getTextHeight() - getInnerDimensions().height()); updateCursorPos(); } @@ -536,7 +536,7 @@ void MacTextWindow::scroll(int delta) { if (_editable) _scrollPos = CLIP(_scrollPos, 0, _mactext->getTextHeight() - kConScrollStep); else - _scrollPos = CLIP(_scrollPos, 0, MAX(0, _mactext->getTextHeight() - getInnerDimensions().height())); + _scrollPos = CLIP(_scrollPos, 0, MAX(0, _mactext->getTextHeight() - getInnerDimensions().height())); undrawCursor(); _cursorY -= (_scrollPos - oldScrollPos);