diff options
author | Paul Gilbert | 2014-03-15 18:52:44 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-03-15 18:52:44 -0400 |
commit | ca6cf0eaf2692ac5c787b86e193e8e6980d2b7ee (patch) | |
tree | 1e397c008c06c381047a7d8c3a48ca78b2f27b60 /engines/mads/user_interface.cpp | |
parent | b652e2eafd3de5436b45619659b5299d945074be (diff) | |
download | scummvm-rg350-ca6cf0eaf2692ac5c787b86e193e8e6980d2b7ee.tar.gz scummvm-rg350-ca6cf0eaf2692ac5c787b86e193e8e6980d2b7ee.tar.bz2 scummvm-rg350-ca6cf0eaf2692ac5c787b86e193e8e6980d2b7ee.zip |
MADS: Fix display of user interface during animation
Diffstat (limited to 'engines/mads/user_interface.cpp')
-rw-r--r-- | engines/mads/user_interface.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/mads/user_interface.cpp b/engines/mads/user_interface.cpp index 6afbf4c09c..63a0ec0a80 100644 --- a/engines/mads/user_interface.cpp +++ b/engines/mads/user_interface.cpp @@ -39,6 +39,9 @@ void SceneNode::load(Common::SeekableReadStream *f) { UserInterface::UserInterface(MADSEngine *vm) : _vm(vm) { _category = CAT_NONE; _screenObjectsCount = 0; + + byte *pData = _vm->_screen.getBasePtr(0, MADS_SCREEN_HEIGHT - MADS_INTERFACE_HEIGHT); + setPixels(pData, MADS_SCREEN_WIDTH, MADS_INTERFACE_HEIGHT); } void UserInterface::load(const Common::String &resName) { @@ -61,7 +64,6 @@ void UserInterface::load(const Common::String &resName) { delete palStream; // set the size for the interface - setSize(MADS_SCREEN_WIDTH, MADS_INTERFACE_HEIGHT); Common::SeekableReadStream *pixelsStream = madsPack.getItemStream(1); pixelsStream->read(getData(), MADS_SCREEN_WIDTH * MADS_INTERFACE_HEIGHT); delete pixelsStream; @@ -84,7 +86,6 @@ void UserInterface::setup(int id) { resName += "A"; resName += ".INT"; - free(); load(resName); } scene._screenObjects._v832EC = id; |