aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-08-17 10:15:40 +0200
committerEugene Sandulenko2019-09-03 17:17:34 +0200
commit5f2be7e99308eae5fee8ea7febf3f23afbe94e2c (patch)
treee09f0609bc154736681701a835e5ce2a8dbf7ea1
parent45e49a6ba21408043677f68981bd239e5bf4f161 (diff)
downloadscummvm-rg350-5f2be7e99308eae5fee8ea7febf3f23afbe94e2c.tar.gz
scummvm-rg350-5f2be7e99308eae5fee8ea7febf3f23afbe94e2c.tar.bz2
scummvm-rg350-5f2be7e99308eae5fee8ea7febf3f23afbe94e2c.zip
HDB: Remove unnecessary global references
-rw-r--r--engines/hdb/gfx.cpp8
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