diff options
author | Paul Gilbert | 2014-03-04 22:33:27 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-03-04 22:33:27 -0500 |
commit | 568fc31b3090a70aa922479991540d4f5c2e918c (patch) | |
tree | f77e83b0b738479e369520513d8741ac05883ca2 /engines/mads/mads.cpp | |
parent | 1607a9104700e987cacfec41aaafd25d979aeb98 (diff) | |
download | scummvm-rg350-568fc31b3090a70aa922479991540d4f5c2e918c.tar.gz scummvm-rg350-568fc31b3090a70aa922479991540d4f5c2e918c.tar.bz2 scummvm-rg350-568fc31b3090a70aa922479991540d4f5c2e918c.zip |
MADS: Beginnings of code support for Scene::drawElements
Diffstat (limited to 'engines/mads/mads.cpp')
-rw-r--r-- | engines/mads/mads.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/mads/mads.cpp b/engines/mads/mads.cpp index e9fbf918c4..fd2aebaecf 100644 --- a/engines/mads/mads.cpp +++ b/engines/mads/mads.cpp @@ -27,10 +27,10 @@ #include "engines/util.h" #include "mads/mads.h" #include "mads/graphics.h" +#include "mads/msurface.h" #include "mads/resources.h" #include "mads/sound.h" -#include "mads/msurface.h" -#include "mads/msprite.h" +#include "mads/sprites.h" namespace MADS { @@ -50,7 +50,6 @@ MADSEngine::MADSEngine(OSystem *syst, const MADSGameDescription *gameDesc) : _game = nullptr; _palette = nullptr; _resources = nullptr; - _screen = nullptr; _sound = nullptr; _userInterface = nullptr; } @@ -63,7 +62,6 @@ MADSEngine::~MADSEngine() { delete _game; delete _palette; delete _resources; - delete _screen; delete _sound; delete _userInterface; } @@ -84,13 +82,13 @@ void MADSEngine::initialise() { _events = new EventsManager(this); _palette = new Palette(this); _font = new Font(this); - _screen = new MSurface(g_system->getWidth(), g_system->getHeight()); + _screen.setSize(g_system->getWidth(), g_system->getHeight()); _sound = new SoundManager(this, _mixer); _userInterface = UserInterface::init(this); _game = Game::init(this); _events->loadCursors("*CURSOR.SS"); - _screen->empty(); + _screen.empty(); } Common::Error MADSEngine::run() { |