From 335bf94d5fdbdfbeb57c42f23d947301b00ce47d Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 18 Jan 2004 02:31:53 +0000 Subject: Add back checks for invalid left/right values, fixes regressions for now. svn-id: r12462 --- scumm/gfx.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scumm') 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); -- cgit v1.2.3