From 5f2be7e99308eae5fee8ea7febf3f23afbe94e2c Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 17 Aug 2019 10:15:40 +0200 Subject: HDB: Remove unnecessary global references --- engines/hdb/gfx.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/hdb') 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 -- cgit v1.2.3