From 7b907be93775167eab8efab45bea3b9a2776e288 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 15 Apr 2014 19:28:29 -0400 Subject: MADS: General cleanup and minor renamings --- engines/mads/user_interface.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'engines/mads/user_interface.cpp') 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); -- cgit v1.2.3