aboutsummaryrefslogtreecommitdiff
path: root/graphics/video
diff options
context:
space:
mode:
authorSven Hesse2010-08-08 00:52:59 +0000
committerSven Hesse2010-08-08 00:52:59 +0000
commit6ebec969c57029e8191689589237c1c5dd9917ee (patch)
treee5327b2ab9d6b5bdc951fb59bdc84c015803d517 /graphics/video
parenta57e53c986f8a2d67902b5ed9079112b0f69260a (diff)
downloadscummvm-rg350-6ebec969c57029e8191689589237c1c5dd9917ee.tar.gz
scummvm-rg350-6ebec969c57029e8191689589237c1c5dd9917ee.tar.bz2
scummvm-rg350-6ebec969c57029e8191689589237c1c5dd9917ee.zip
VIDEO: Fix deLZ77'ing video data directly onto the video surface
svn-id: r51890
Diffstat (limited to 'graphics/video')
-rw-r--r--graphics/video/coktel_decoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/video/coktel_decoder.cpp b/graphics/video/coktel_decoder.cpp
index 28a34a34ab..629e01c2b5 100644
--- a/graphics/video/coktel_decoder.cpp
+++ b/graphics/video/coktel_decoder.cpp
@@ -1226,9 +1226,9 @@ void IMDDecoder::renderFrame() {
type &= 0x7F;
- if ((type == 2) && (rect.width() == _surface.w)) {
+ if ((type == 2) && (rect.width() == _surface.w) && (_x == 0)) {
// Directly uncompress onto the video surface
- deLZ77((byte *)_surface.pixels, dataPtr);
+ deLZ77((byte *)_surface.pixels + (_y * _surface.pitch), dataPtr);
return;
}