diff options
author | Max Horn | 2009-01-30 16:04:39 +0000 |
---|---|---|
committer | Max Horn | 2009-01-30 16:04:39 +0000 |
commit | 716f88f57127e32916ce22f756b1a3f2d2eff9d6 (patch) | |
tree | e8d0463c041f44e52ef8a4bf1487fda8d4076577 /engines/sky/control.cpp | |
parent | f465abb75d81a248e3c553aa5706031b52c7189d (diff) | |
download | scummvm-rg350-716f88f57127e32916ce22f756b1a3f2d2eff9d6.tar.gz scummvm-rg350-716f88f57127e32916ce22f756b1a3f2d2eff9d6.tar.bz2 scummvm-rg350-716f88f57127e32916ce22f756b1a3f2d2eff9d6.zip |
Avoid using g_engine if possible
svn-id: r36149
Diffstat (limited to 'engines/sky/control.cpp')
-rw-r--r-- | engines/sky/control.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sky/control.cpp b/engines/sky/control.cpp index ed2902fe47..a1ac2460eb 100644 --- a/engines/sky/control.cpp +++ b/engines/sky/control.cpp @@ -496,7 +496,7 @@ void Control::doControlPanel(void) { _curButtonText = 0; uint16 clickRes = 0; - while (!quitPanel && !g_engine->shouldQuit()) { + while (!quitPanel && !Engine::shouldQuit()) { _text->drawToScreen(WITH_MASK); _system->updateScreen(); _mouseClicked = false; @@ -528,7 +528,7 @@ void Control::doControlPanel(void) { } memset(_screenBuf, 0, GAME_SCREEN_WIDTH * FULL_SCREEN_HEIGHT); _system->copyRectToScreen(_screenBuf, GAME_SCREEN_WIDTH, 0, 0, GAME_SCREEN_WIDTH, FULL_SCREEN_HEIGHT); - if (!g_engine->shouldQuit()) + if (!Engine::shouldQuit()) _system->updateScreen(); _skyScreen->forceRefresh(); _skyScreen->setPaletteEndian((uint8 *)_skyCompact->fetchCpt(SkyEngine::_systemVars.currentPalette)); @@ -607,7 +607,7 @@ uint16 Control::handleClick(ConResource *pButton) { case QUIT_TO_DOS: animClick(pButton); if (getYesNo(quitDos)) - g_engine->quitGame(); + Engine::quitGame(); return 0; default: error("Control::handleClick: unknown routine: %X",pButton->_onClick); @@ -879,7 +879,7 @@ uint16 Control::saveRestorePanel(bool allowSave) { bool refreshNames = true; bool refreshAll = true; uint16 clickRes = 0; - while (!quitPanel && !g_engine->shouldQuit()) { + while (!quitPanel && !Engine::shouldQuit()) { clickRes = 0; if (refreshNames || refreshAll) { if (refreshAll) { |