From c4669dd2f2ec850f3a42794dbbc134febed229e2 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 19 Apr 2014 17:43:44 -0400 Subject: MADS: Fix refresh of inventory list after scrolling --- engines/mads/screen.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'engines/mads/screen.cpp') diff --git a/engines/mads/screen.cpp b/engines/mads/screen.cpp index 5f09737620..9dec5a8b1b 100644 --- a/engines/mads/screen.cpp +++ b/engines/mads/screen.cpp @@ -54,8 +54,6 @@ void DirtyArea::setArea(int width, int height, int maxWidth, int maxHeight) { right = maxWidth; _bounds.right = right; - _bounds2.left = _bounds.width() / 2; - _bounds2.right = _bounds.left + (_bounds.width() + 1) / 2 - 1; if (_bounds.top < 0) _bounds.top = 0; @@ -68,9 +66,6 @@ void DirtyArea::setArea(int width, int height, int maxWidth, int maxHeight) { bottom = maxHeight; _bounds.bottom = bottom; - _bounds2.top = _bounds.height() / 2; - _bounds2.bottom = _bounds.top + (_bounds.height() + 1) / 2 - 1; - _active = true; } @@ -193,7 +188,7 @@ void DirtyAreas::merge(int startIndex, int count) { * Returns true if two dirty areas intersect */ bool DirtyAreas::intersects(int idx1, int idx2) { - return (*this)[idx1]._bounds2.intersects((*this)[idx2]._bounds2); + return (*this)[idx1]._bounds.intersects((*this)[idx2]._bounds); } void DirtyAreas::mergeAreas(int idx1, int idx2) { @@ -202,11 +197,6 @@ void DirtyAreas::mergeAreas(int idx1, int idx2) { da1._bounds.extend(da2._bounds); - da1._bounds2.left = da1._bounds.width() / 2; - da1._bounds2.right = da1._bounds.left + (da1._bounds.width() + 1) / 2 - 1; - da1._bounds2.top = da1._bounds.height() / 2; - da1._bounds2.bottom = da1._bounds.top + (da1._bounds.height() + 1) / 2 - 1; - da2._active = false; da2._mergedArea = &da1; da1._textActive = true; -- cgit v1.2.3