diff options
author | Travis Howell | 2004-01-18 02:31:53 +0000 |
---|---|---|
committer | Travis Howell | 2004-01-18 02:31:53 +0000 |
commit | 335bf94d5fdbdfbeb57c42f23d947301b00ce47d (patch) | |
tree | 2421c29895d6c1d5facd1f60cbd8d9b2146a6a7f | |
parent | 568913784a6ba965bfe46d0eb6930995fadf9658 (diff) | |
download | scummvm-rg350-335bf94d5fdbdfbeb57c42f23d947301b00ce47d.tar.gz scummvm-rg350-335bf94d5fdbdfbeb57c42f23d947301b00ce47d.tar.bz2 scummvm-rg350-335bf94d5fdbdfbeb57c42f23d947301b00ce47d.zip |
Add back checks for invalid left/right values, fixes regressions for now.
svn-id: r12462
-rw-r--r-- | scumm/gfx.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index c9c05c0e19..9da4e37a35 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -563,6 +563,10 @@ void ScummEngine::restoreBG(Common::Rect rect, byte backColor) { rect.top -= topline; rect.bottom -= topline; + if (rect.left < 0) + rect.left = 0; + if (rect.right < 0) + rect.right = 0; rect.clip(vs->width, vs->height); markRectAsDirty(vs->number, rect, USAGE_BIT_RESTORED); |