diff options
author | Max Horn | 2002-11-19 01:45:08 +0000 |
---|---|---|
committer | Max Horn | 2002-11-19 01:45:08 +0000 |
commit | 24a1a2a369a1c74e143e3c2ee500d645d6fa6457 (patch) | |
tree | 94e368c8839ac1e5f4f3487a17ee1b0b5b627b92 /scumm/akos.cpp | |
parent | ce3cde15a027fd092d0d27fa165f0166d4ecb927 (diff) | |
download | scummvm-rg350-24a1a2a369a1c74e143e3c2ee500d645d6fa6457.tar.gz scummvm-rg350-24a1a2a369a1c74e143e3c2ee500d645d6fa6457.tar.bz2 scummvm-rg350-24a1a2a369a1c74e143e3c2ee500d645d6fa6457.zip |
Patch #639699: SAM: Fix for graphics glitch
svn-id: r5601
Diffstat (limited to 'scumm/akos.cpp')
-rw-r--r-- | scumm/akos.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp index 6e27eaf66a..cc588cc1b2 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -319,7 +319,7 @@ void AkosRenderer::codec1_genericDecode() if (v1.scaletable[v1.tmp_x] < scale_x) { v1.x += v1.scaleXstep; - if (v1.x >= _vm->_realWidth) + if (v1.x < 0 || v1.x >= _vm->_realWidth) return; maskbit = revBitMask[v1.x & 7]; v1.destptr += v1.scaleXstep; @@ -387,7 +387,7 @@ void AkosRenderer::codec1_spec1() if (v1.scaletable[v1.tmp_x] < scale_x) { v1.x += v1.scaleXstep; - if (v1.x >= _vm->_realWidth) + if (v1.x < 0 || v1.x >= _vm->_realWidth) return; maskbit = revBitMask[v1.x & 7]; v1.destptr += v1.scaleXstep; @@ -463,7 +463,7 @@ void AkosRenderer::codec1_spec3() if (v1.scaletable[v1.tmp_x] < scale_x) { v1.x += v1.scaleXstep; - if (v1.x >= _vm->_realWidth) + if (v1.x < 0 || v1.x >= _vm->_realWidth) return; maskbit = revBitMask[v1.x & 7]; v1.destptr += v1.scaleXstep; |