diff options
author | Eugene Sandulenko | 2019-08-17 10:15:40 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:34 +0200 |
commit | 5f2be7e99308eae5fee8ea7febf3f23afbe94e2c (patch) | |
tree | e09f0609bc154736681701a835e5ce2a8dbf7ea1 /engines | |
parent | 45e49a6ba21408043677f68981bd239e5bf4f161 (diff) | |
download | scummvm-rg350-5f2be7e99308eae5fee8ea7febf3f23afbe94e2c.tar.gz scummvm-rg350-5f2be7e99308eae5fee8ea7febf3f23afbe94e2c.tar.bz2 scummvm-rg350-5f2be7e99308eae5fee8ea7febf3f23afbe94e2c.zip |
HDB: Remove unnecessary global references
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/gfx.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp index 5d8f5cae4c..8d352f77ab 100644 --- a/engines/hdb/gfx.cpp +++ b/engines/hdb/gfx.cpp @@ -277,9 +277,9 @@ void Gfx::updateVideo() { Common::Rect clip(g_hdb->_progressGfx->getSurface()->getBounds()); clip.moveTo(left, g_hdb->_progressY); - clip.clip(g_hdb->_gfx->_globalSurface.getBounds()); + clip.clip(_globalSurface.getBounds()); if (!clip.isEmpty()) - g_system->copyRectToScreen(g_hdb->_gfx->_globalSurface.getBasePtr(clip.left, clip.top), g_hdb->_gfx->_globalSurface.pitch, clip.left, clip.top, clip.width(), clip.height()); + g_system->copyRectToScreen(_globalSurface.getBasePtr(clip.left, clip.top), _globalSurface.pitch, clip.left, clip.top, clip.width(), clip.height()); g_system->updateScreen(); } @@ -999,13 +999,13 @@ void Gfx::drawText(const char *string) { width = kFontSpace; // Blit the character - g_hdb->_gfx->_globalSurface.transBlitFrom(_fontSurfaces[c], Common::Point(_cursorX, _cursorY), 0xf81f); + _globalSurface.transBlitFrom(_fontSurfaces[c], Common::Point(_cursorX, _cursorY), 0xf81f); Common::Rect clip(0, 0, width, _fontHeader.height); clip.moveTo(_cursorX, _cursorY); clip.clip(_globalSurface.getBounds()); if (!clip.isEmpty()) { - g_system->copyRectToScreen(g_hdb->_gfx->_globalSurface.getBasePtr(clip.left, clip.top), g_hdb->_gfx->_globalSurface.pitch, clip.left, clip.top, clip.width(), clip.height()); + g_system->copyRectToScreen(_globalSurface.getBasePtr(clip.left, clip.top), _globalSurface.pitch, clip.left, clip.top, clip.width(), clip.height()); } // Advance the cursor |