aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorNipun Garg2019-06-23 21:52:54 +0530
committerEugene Sandulenko2019-09-03 17:16:58 +0200
commit87f8ed55b17b9ce2dbda339f7601b87a48ebd215 (patch)
treee269d711c22a1573f467a56441299e59bc2e9b25 /engines/hdb
parent7389d7d819db53d7672701df29f751c9b0e1fa1b (diff)
downloadscummvm-rg350-87f8ed55b17b9ce2dbda339f7601b87a48ebd215.tar.gz
scummvm-rg350-87f8ed55b17b9ce2dbda339f7601b87a48ebd215.tar.bz2
scummvm-rg350-87f8ed55b17b9ce2dbda339f7601b87a48ebd215.zip
HDB: Fix character blitting
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/draw-manager.cpp6
1 files changed, 3 insertions, 3 deletions
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;