diff options
author | Walter van Niftrik | 2019-07-22 08:54:08 +0200 |
---|---|---|
committer | Walter van Niftrik | 2019-08-11 23:36:27 +0200 |
commit | d5c7e9d2073c54ed284e1aa4e532f36bf68c3818 (patch) | |
tree | c57393b386098449f0dbdc414d66919776100be0 /engines/adl/adl.cpp | |
parent | 92a3a3a8a551f32abc9654d3731ae3d297280878 (diff) | |
download | scummvm-rg350-d5c7e9d2073c54ed284e1aa4e532f36bf68c3818.tar.gz scummvm-rg350-d5c7e9d2073c54ed284e1aa4e532f36bf68c3818.tar.bz2 scummvm-rg350-d5c7e9d2073c54ed284e1aa4e532f36bf68c3818.zip |
ADL: Refactor Display class
Diffstat (limited to 'engines/adl/adl.cpp')
-rw-r--r-- | engines/adl/adl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/adl/adl.cpp b/engines/adl/adl.cpp index 2379ecdb8f..baf14ea466 100644 --- a/engines/adl/adl.cpp +++ b/engines/adl/adl.cpp @@ -286,7 +286,7 @@ byte AdlEngine::inputKey(bool showCursor) const { if (_inputScript && !_scriptPaused) return _display->asciiToNative('\r'); - _display->copyTextSurface(); + _display->renderText(); g_system->delayMillis(16); } @@ -730,7 +730,7 @@ void AdlEngine::gameLoop() { } Common::Error AdlEngine::run() { - _display = new Display_A2(); + _display = Display_A2_create(); _console = new Console(this); _display->init(); @@ -964,7 +964,7 @@ Common::Error AdlEngine::saveGameState(int slot, const Common::String &desc) { uint32 playTime = getTotalPlayTime(); outFile->writeUint32BE(playTime); - _display->saveThumbnail(*outFile); + Graphics::saveThumbnail(*outFile); saveState(*outFile); outFile->finalize(); @@ -1280,7 +1280,7 @@ int AdlEngine::o_restart(ScriptEnv &e) { if (input.size() == 0 || input[0] != _display->asciiToNative('N')) { _isRestarting = true; _graphics->clearScreen(); - _display->copyGfxSurface(); + _display->renderGraphics(); _display->printString(_strings.pressReturn); initState(); _display->printAsciiString(_strings.lineFeeds); |