From 87f8ed55b17b9ce2dbda339f7601b87a48ebd215 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Sun, 23 Jun 2019 21:52:54 +0530 Subject: HDB: Fix character blitting --- engines/hdb/draw-manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp index 368aa2d0eb..f4edcb7a68 100644 --- a/engines/hdb/draw-manager.cpp +++ b/engines/hdb/draw-manager.cpp @@ -517,7 +517,7 @@ void DrawMan::drawText(const char *string) { } // Draw the characters - for (int j = 0;j < (int)strlen(string);j++) { + for (int j = 0; j < (int)strlen(string);j++) { c = string[j]; if (c == '\n' || cr[j]) { _cursorX = _eLeft; @@ -532,8 +532,8 @@ void DrawMan::drawText(const char *string) { width = kFontSpace; // Blit the character - g_hdb->_drawMan->_globalSurface.transBlitFrom(_fontSurfaces[c], Common::Point(_cursorX, _cursorY)); - g_system->copyRectToScreen(g_hdb->_drawMan->_globalSurface.getBasePtr(0, 0), g_hdb->_drawMan->_globalSurface.pitch, 0, 0, width, _fontHeader.height); + g_hdb->_drawMan->_globalSurface.transBlitFrom(_fontSurfaces[c], Common::Point(_cursorX, _cursorY), 0xf81f); + g_system->copyRectToScreen(g_hdb->_drawMan->_globalSurface.getBasePtr(_cursorX, _cursorY), g_hdb->_drawMan->_globalSurface.pitch, _cursorX, _cursorY, width, _fontHeader.height); // Advance the cursor _cursorX += width + _fontHeader.kerning * kFontIncrement; -- cgit v1.2.3