diff options
author | Travis Howell | 2005-04-14 11:23:18 +0000 |
---|---|---|
committer | Travis Howell | 2005-04-14 11:23:18 +0000 |
commit | 5ddb09fecb304526f89b8e85e5b42928d342a2be (patch) | |
tree | a6c164610d98f39009bc8c288236783b14f797b9 /scumm/akos.cpp | |
parent | 5b50c4e2e8342c3e87d236155d745162cd8e51ce (diff) | |
download | scummvm-rg350-5ddb09fecb304526f89b8e85e5b42928d342a2be.tar.gz scummvm-rg350-5ddb09fecb304526f89b8e85e5b42928d342a2be.tar.bz2 scummvm-rg350-5ddb09fecb304526f89b8e85e5b42928d342a2be.zip |
Add missing safety check, should only clip if rect is valid.
Fixes Eggs Away in farm
svn-id: r17598
Diffstat (limited to 'scumm/akos.cpp')
-rw-r--r-- | scumm/akos.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp index e9c4b591bb..d0391c2e39 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -869,7 +869,8 @@ byte AkosRenderer::codec1(int xmoveCur, int ymoveCur) { v1.scaleXstep = _mirror ? 1 : -1; if (_vm->_heversion >= 71) { - rect.clip(_clipOverride); + if (_clipOverride.right > _clipOverride.left && _clipOverride.bottom > _clipOverride.top) + rect.clip(_clipOverride); } if (_actorHitMode) { @@ -1139,7 +1140,8 @@ byte AkosRenderer::codec16(int xmoveCur, int ymoveCur) { maxh = _out.h; if (_vm->_heversion >= 71) { - clip.clip(_clipOverride); + if (_clipOverride.right > _clipOverride.left && _clipOverride.bottom > _clipOverride.top) + clip.clip(_clipOverride); } markRectAsDirty(clip); |