diff options
author | Travis Howell | 2004-07-01 11:22:38 +0000 |
---|---|---|
committer | Travis Howell | 2004-07-01 11:22:38 +0000 |
commit | 26a4a688cfee19e6bf2561cb2a378606139087d4 (patch) | |
tree | c225f0bc35284e1cf550d0354799122fd7852acd /scumm/akos.cpp | |
parent | 06dc6a2c4e45e7131c08f6cf86ecd0c9f17e9b44 (diff) | |
download | scummvm-rg350-26a4a688cfee19e6bf2561cb2a378606139087d4.tar.gz scummvm-rg350-26a4a688cfee19e6bf2561cb2a378606139087d4.tar.bz2 scummvm-rg350-26a4a688cfee19e6bf2561cb2a378606139087d4.zip |
Fix large delay in library of The Dig regression.
Clipping in akos was made too strict.
svn-id: r14145
Diffstat (limited to 'scumm/akos.cpp')
-rw-r--r-- | scumm/akos.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp index 0b879752ef..b279e272fe 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -815,7 +815,7 @@ byte AkosRenderer::codec5(int xmoveCur, int ymoveCur) { clip.clip(maxw, maxh); - if (!clip.isValidRect()) + if ((clip.left >= clip.right) || (clip.top >= clip.bottom)) return 0; if (_draw_top > clip.top) @@ -1020,7 +1020,7 @@ byte AkosRenderer::codec16(int xmoveCur, int ymoveCur) { clip.bottom = maxh; } - if (!clip.isValidRect()) + if ((clip.left >= clip.right) || (clip.top >= clip.bottom)) return 0; if (_draw_top > clip.top) |