diff options
author | Paul Gilbert | 2015-07-05 22:14:29 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-07-05 22:14:29 -0400 |
commit | 023084f7e7d4005eaa5f74bbca53becf423e9ee6 (patch) | |
tree | 8400a91297bde96d8c5c96dc999809848f0e144e | |
parent | 5ee20a8870e8360d53fefcfcd5acd92a628abc50 (diff) | |
download | scummvm-rg350-023084f7e7d4005eaa5f74bbca53becf423e9ee6.tar.gz scummvm-rg350-023084f7e7d4005eaa5f74bbca53becf423e9ee6.tar.bz2 scummvm-rg350-023084f7e7d4005eaa5f74bbca53becf423e9ee6.zip |
SHERLOCK: RT: Simplify restoreBackground
-rw-r--r-- | engines/sherlock/screen.cpp | 9 |
1 files 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) { |