Skip to content

Commit

Permalink
HOPKINS: Use displayText() for displaying credits
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Mar 24, 2013
1 parent 75b5753 commit d149303
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions engines/hopkins/hopkins.cpp
Expand Up @@ -2464,16 +2464,8 @@ void HopkinsEngine::displayCredits(int startPosY, byte *buffer, char color) {
if (endPosY > _globals->_creditsEndY)
_globals->_creditsEndY = endPosY;

bufPtr = buffer;
for (;;) {
curChar = *bufPtr++;
if (!curChar)
break;
if (curChar > 31) {
_graphicsManager->displayFont(_graphicsManager->_vesaBuffer, _fontManager->_font, startPosX, startPosY, curChar - 32, color);
startPosX += _objectsManager->getWidth(_fontManager->_font, curChar - 32);
}
}
Common::String message = Common::String((char *)buffer);
_fontManager->displayText(startPosX, startPosY, message, color);
}

void HopkinsEngine::displayCredits() {
Expand Down

0 comments on commit d149303

Please sign in to comment.