diff options
author | Strangerke | 2013-03-24 16:47:58 +0100 |
---|---|---|
committer | Strangerke | 2013-03-24 16:47:58 +0100 |
commit | d149303b4d12ff10683886e5d0a0307e8ff95abd (patch) | |
tree | 90b3866d0962b54a5c80d7c931355ef8f36afa7f | |
parent | 75b5753b618c379f97132c43f73cee8c0be85e81 (diff) | |
download | scummvm-rg350-d149303b4d12ff10683886e5d0a0307e8ff95abd.tar.gz scummvm-rg350-d149303b4d12ff10683886e5d0a0307e8ff95abd.tar.bz2 scummvm-rg350-d149303b4d12ff10683886e5d0a0307e8ff95abd.zip |
HOPKINS: Use displayText() for displaying credits
-rw-r--r-- | engines/hopkins/hopkins.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/engines/hopkins/hopkins.cpp b/engines/hopkins/hopkins.cpp index 2d4425e3ff..76c085c6d8 100644 --- a/engines/hopkins/hopkins.cpp +++ b/engines/hopkins/hopkins.cpp @@ -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() { |