From 562da310b8a2d3331ea206c51e25ea7383925646 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 7 Jul 2017 20:55:12 -0400 Subject: TITANIC: Fix to only update modified parts of the screen --- engines/titanic/support/rect.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'engines/titanic/support') diff --git a/engines/titanic/support/rect.cpp b/engines/titanic/support/rect.cpp index 5fce4402cb..b39ffc1c45 100644 --- a/engines/titanic/support/rect.cpp +++ b/engines/titanic/support/rect.cpp @@ -25,10 +25,11 @@ namespace Titanic { void Rect::combine(const Rect &r) { - if (isEmpty() || r.isEmpty()) - return; - - Common::Rect::extend(r); + if (isEmpty()) { + *this = r; + } else if (!r.isEmpty()) { + Common::Rect::extend(r); + } } void Rect::constrain(const Rect &r) { -- cgit v1.2.3