diff options
| author | Max Horn | 2003-05-30 02:01:45 +0000 | 
|---|---|---|
| committer | Max Horn | 2003-05-30 02:01:45 +0000 | 
| commit | 37fa2df49acf2991c24c6b7e271ed4431f8dc5c5 (patch) | |
| tree | 1fdda33120dcadeeb699105478fb1fd5340fde3a /scumm/gfx.cpp | |
| parent | 9f301f16e611c1b67ba3fca6508c3d11224c8df8 (diff) | |
| download | scummvm-rg350-37fa2df49acf2991c24c6b7e271ed4431f8dc5c5.tar.gz scummvm-rg350-37fa2df49acf2991c24c6b7e271ed4431f8dc5c5.tar.bz2 scummvm-rg350-37fa2df49acf2991c24c6b7e271ed4431f8dc5c5.zip | |
cleanup; removed last horizontal bound check from updateDirtyRect -> now all the various 'offscreen actor redraw' problems should be fixed (at least I can't reproduce them in COMI anymore), while The Dig should still work just fine (at least it does in my test cases)
svn-id: r8129
Diffstat (limited to 'scumm/gfx.cpp')
| -rw-r--r-- | scumm/gfx.cpp | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 435ef41947..11b0b89ac9 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -285,7 +285,9 @@ void Scumm::updateDirtyRect(int virt, int left, int right, int top, int bottom,  	VirtScreen *vs = &virtscr[virt];  	int lp, rp; -	if (top > vs->height || right < 0 || bottom < 0) +	if (left > right || top > bottom) +		return; +	if (top > vs->height || bottom < 0)  		return;  	if (top < 0) | 
