diff options
author | Strangerke | 2015-12-04 13:32:08 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:33:50 +0100 |
commit | 733fbe4c62911adc478400ba5d0dcf220e1b45ee (patch) | |
tree | 44b98212dff065a1ef5bae3355192de80eb0861f /engines/lab/lab.cpp | |
parent | c399536a07b6bf96ff311d4398f51e2d865a2027 (diff) | |
download | scummvm-rg350-733fbe4c62911adc478400ba5d0dcf220e1b45ee.tar.gz scummvm-rg350-733fbe4c62911adc478400ba5d0dcf220e1b45ee.tar.bz2 scummvm-rg350-733fbe4c62911adc478400ba5d0dcf220e1b45ee.zip |
LAB: Start working on a separate DisplayMan class
Diffstat (limited to 'engines/lab/lab.cpp')
-rw-r--r-- | engines/lab/lab.cpp | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/engines/lab/lab.cpp b/engines/lab/lab.cpp index 90c713135b..efa675299f 100644 --- a/engines/lab/lab.cpp +++ b/engines/lab/lab.cpp @@ -55,16 +55,13 @@ LabEngine::LabEngine(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst), _gameDescription(gameDesc), _extraGameFeatures(0) { g_lab = this; - _screenWidth = 320; + _screenWidth = 320; _screenHeight = 200; - _screenBytesPerPage = 65536; - _curapen = 0; + _currentDisplayBuffer = 0; + _displayBuffer = 0; - _currentDisplayBuffer = 0; - _displayBuffer = 0; - - _lastWaitTOFTicks = 0; + _lastWaitTOFTicks = 0; _isHiRes = false; _roomNum = -1; @@ -86,9 +83,9 @@ LabEngine::LabEngine(OSystem *syst, const ADGameDescription *gameDesc) _resource = nullptr; _music = nullptr; _anim = nullptr; + _graphics = nullptr; - _lastMessageLong = false; - _lastTooLong = false; + _lastTooLong = false; _interfaceOff = false; _alternate = false; @@ -104,15 +101,13 @@ LabEngine::LabEngine(OSystem *syst, const ADGameDescription *gameDesc) _nextFileName = nullptr; _newFileName = nullptr; - _moveGadgetList = 0; - _invGadgetList = 0; - - _curFileName = " "; + _moveGadgetList = 0; + _invGadgetList = 0; - _longWinInFront = false; - _msgFont = 0; + _curFileName = " "; + _msgFont = 0; - _inventory = 0; + _inventory = 0; //const Common::FSNode gameDataDir(ConfMan.get("path")); //SearchMan.addSubDirectoryMatching(gameDataDir, "game"); @@ -129,6 +124,7 @@ LabEngine::~LabEngine() { delete _resource; delete _music; delete _anim; + delete _graphics; } Common::Error LabEngine::run() { @@ -141,6 +137,7 @@ Common::Error LabEngine::run() { _resource = new Resource(this); _music = new Music(this); _anim = new Anim(this); + _graphics = new DisplayMan(this); if (getPlatform() == Common::kPlatformWindows) { // Check if this is the Wyrmkeep trial |