From d149303b4d12ff10683886e5d0a0307e8ff95abd Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sun, 24 Mar 2013 16:47:58 +0100 Subject: HOPKINS: Use displayText() for displaying credits --- engines/hopkins/hopkins.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'engines/hopkins') 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() { -- cgit v1.2.3