diff options
author | Eugene Sandulenko | 2016-09-14 10:50:21 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-14 10:51:28 +0200 |
commit | ea4000088e6a33cb827894081d7484374937527a (patch) | |
tree | e9ebfdbceb21c46f1ce14209fd3a62ae7d78b37e /engines/fullpipe | |
parent | ec4e97dc235f95ea2a24637848d1f53a6ae1b56a (diff) | |
download | scummvm-rg350-ea4000088e6a33cb827894081d7484374937527a.tar.gz scummvm-rg350-ea4000088e6a33cb827894081d7484374937527a.tar.bz2 scummvm-rg350-ea4000088e6a33cb827894081d7484374937527a.zip |
FULLPIPE: Fixed decoding of extra wide pictures. (transporter scene29)
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/gfx.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index 90b8ae5c2b..5681e3c615 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -925,7 +925,7 @@ bool Bitmap::putDibRB(int32 *palette) { } if (fillLen > 0 || start1 >= 0) { - if (x <= 799 + 1 || (fillLen += 799 - x + 1, fillLen > 0)) { + if (x <= _width + 1 || (fillLen += _width - x + 1, fillLen > 0)) { if (y <= endy) { int bgcolor = palette[(pixel >> 8) & 0xff]; curDestPtr = (uint32 *)_surface->getBasePtr(start1, y); @@ -947,8 +947,8 @@ bool Bitmap::putDibRB(int32 *palette) { } } - if (x > 799 + 1) { - fillLen += 799 - x + 1; + if (x > _width + 1) { + fillLen += _width - x + 1; if (fillLen <= 0) continue; } |