From 6ebec969c57029e8191689589237c1c5dd9917ee Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sun, 8 Aug 2010 00:52:59 +0000 Subject: VIDEO: Fix deLZ77'ing video data directly onto the video surface svn-id: r51890 --- graphics/video/coktel_decoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'graphics/video') 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; } -- cgit v1.2.3