aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2013-03-24 16:47:58 +0100
committerStrangerke2013-03-24 16:47:58 +0100
commitd149303b4d12ff10683886e5d0a0307e8ff95abd (patch)
tree90b3866d0962b54a5c80d7c931355ef8f36afa7f
parent75b5753b618c379f97132c43f73cee8c0be85e81 (diff)
downloadscummvm-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.cpp12
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() {