Skip to content

Commit

Permalink
ACCESS: Fix display in cmdDeath()
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke authored and dreammaster committed Dec 13, 2014
1 parent 38edbfb commit 26b632a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions engines/access/access.cpp
Expand Up @@ -325,16 +325,15 @@ void AccessEngine::printText(ASurface *s, const Common::String &msg) {
_fonts._font2._fontColors[1] = 28;
_fonts._font2._fontColors[2] = 29;
_fonts._font2._fontColors[3] = 30;

_fonts._font2.drawString(s, line, s->_printOrg);
s->_printOrg = Common::Point(s->_printStart.x, s->_printOrg.y + 9);

if (lastLine)
break;
s->_printOrg = Common::Point(s->_printStart.x, s->_printOrg.y + 9);

_events->waitKeyMouse();
_buffer2.copyBuffer(s);
s->_printOrg.y = s->_printStart.y;
if (s->_printOrg.y >_printEnd && !lastLine) {
_events->waitKeyMouse();
s->copyBuffer(&_buffer2);
s->_printOrg.y = s->_printStart.y;
}

if (lastLine)
break;
Expand Down
2 changes: 1 addition & 1 deletion engines/access/font.cpp
Expand Up @@ -111,7 +111,7 @@ bool Font::getLine(Common::String &s, int maxWidth, Common::String &line, int &w
// Reached maximum allowed size
// If this was the last character of the string, let it go
if (*src == '\0')
break;
return true;

// Work backwards to find space at the start of the current word
// as a point to split the line on
Expand Down

0 comments on commit 26b632a

Please sign in to comment.