aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/user_interface.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-04-15 19:28:29 -0400
committerPaul Gilbert2014-04-15 19:28:29 -0400
commit7b907be93775167eab8efab45bea3b9a2776e288 (patch)
tree5637e0c2adc76e044b2129309df58e8fe470e2a4 /engines/mads/user_interface.cpp
parent3db3aced02bd028b41939818b5aa1028733886f3 (diff)
downloadscummvm-rg350-7b907be93775167eab8efab45bea3b9a2776e288.tar.gz
scummvm-rg350-7b907be93775167eab8efab45bea3b9a2776e288.tar.bz2
scummvm-rg350-7b907be93775167eab8efab45bea3b9a2776e288.zip
MADS: General cleanup and minor renamings
Diffstat (limited to 'engines/mads/user_interface.cpp')
-rw-r--r--engines/mads/user_interface.cpp11
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);