diff options
Diffstat (limited to 'engines/mads/user_interface.cpp')
-rw-r--r-- | engines/mads/user_interface.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/engines/mads/user_interface.cpp b/engines/mads/user_interface.cpp index 13d5569045..4348d833c9 100644 --- a/engines/mads/user_interface.cpp +++ b/engines/mads/user_interface.cpp @@ -163,10 +163,6 @@ void UISlots::draw(bool updateFlag, bool delFlag) { // Mark areas of the screen surface for updating if (updateFlag) { - _vm->_screen.setPointer(&userInterface); - userInterface.setBounds(Common::Rect(0, scene._interfaceY, - MADS_SCREEN_WIDTH - 1, userInterface.h + scene._interfaceY - 1)); - for (uint idx = 0; idx < size(); ++idx) { DirtyArea &dirtyArea = userInterface._dirtyAreas[idx]; @@ -502,10 +498,6 @@ void UserInterface::writeVocab(ScrCategory category, int id) { } } -void UserInterface::setBounds(const Common::Rect &r) { - _drawBounds = r; -} - void UserInterface::loadElements() { Scene &scene = _vm->_game->_scene; Common::Rect bounds; @@ -881,9 +873,6 @@ void UserInterface::updateSelection(ScrCategory category, int newIndex, int *idx } void UserInterface::updateRect(const Common::Rect &bounds) { - _vm->_screen.setPointer(&_surface); - setBounds(Common::Rect(0, MADS_SCENE_HEIGHT, MADS_SCREEN_WIDTH - 1, MADS_SCREEN_HEIGHT)); - Common::Rect r = bounds; r.translate(0, MADS_SCENE_HEIGHT); _vm->_screen.copyRectToScreen(r); |