aboutsummaryrefslogtreecommitdiff
path: root/graphics/video
diff options
context:
space:
mode:
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;
}