aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-07-09 07:06:30 +0000
committerTorbjörn Andersson2004-07-09 07:06:30 +0000
commita2afa0158029dc310feb7f921f2de6c41696fd6a (patch)
tree87446d4b60c5a17553a8f76e8a4d99ec78352f83
parent8f6a61991343a298f628724e044f9ec593c9add0 (diff)
downloadscummvm-rg350-a2afa0158029dc310feb7f921f2de6c41696fd6a.tar.gz
scummvm-rg350-a2afa0158029dc310feb7f921f2de6c41696fd6a.tar.bz2
scummvm-rg350-a2afa0158029dc310feb7f921f2de6c41696fd6a.zip
Don't allow codec 1 to skip columns when _scaleX is 255. This is consistent
with how we do it in costume.cpp, and it fixes a graphics glitch in the CMI banjo duel for me. svn-id: r14179
-rw-r--r--scumm/akos.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp
index b279e272fe..54347e0a99 100644
--- a/scumm/akos.cpp
+++ b/scumm/akos.cpp
@@ -415,7 +415,7 @@ void AkosRenderer::codec1_genericDecode() {
scaleytab = &v1.scaletable[v1.scaleYindex];
- if (v1.scaletable[v1.scaleXindex] < _scaleX) {
+ if (_scaleX == 255 || v1.scaletable[v1.scaleXindex] < _scaleX) {
v1.x += v1.scaleXstep;
if (v1.x < 0 || v1.x >= _outwidth)
return;