From 023084f7e7d4005eaa5f74bbca53becf423e9ee6 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 5 Jul 2015 22:14:29 -0400 Subject: SHERLOCK: RT: Simplify restoreBackground --- engines/sherlock/screen.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/engines/sherlock/screen.cpp b/engines/sherlock/screen.cpp index b16518cf95..85d8c7ad9d 100644 --- a/engines/sherlock/screen.cpp +++ b/engines/sherlock/screen.cpp @@ -344,13 +344,8 @@ void Screen::blitFrom3DOcolorLimit(uint16 limitColor) { } void Screen::restoreBackground(const Common::Rect &r) { - if (r.width() > 0 && r.height() > 0) { - Common::Rect tempRect = r; - tempRect.clip(Common::Rect(0, 0, this->w(), SHERLOCK_SCENE_HEIGHT)); - - if (tempRect.isValidRect()) - _backBuffer1.blitFrom(_backBuffer2, Common::Point(tempRect.left, tempRect.top), tempRect); - } + if (r.width() > 0 && r.height() > 0) + _backBuffer1.blitFrom(_backBuffer2, Common::Point(r.left, r.top), r); } void Screen::slamArea(int16 xp, int16 yp, int16 width, int16 height) { -- cgit v1.2.3