VIDEO: Fix deLZ77'ing video data directly onto the video surface

svn-id: r51890
This commit is contained in:
Sven Hesse 2010-08-08 00:52:59 +00:00
parent a57e53c986
commit 6ebec969c5

View File

@ -1226,9 +1226,9 @@ void IMDDecoder::renderFrame() {
type &= 0x7F; type &= 0x7F;
if ((type == 2) && (rect.width() == _surface.w)) { if ((type == 2) && (rect.width() == _surface.w) && (_x == 0)) {
// Directly uncompress onto the video surface // Directly uncompress onto the video surface
deLZ77((byte *)_surface.pixels, dataPtr); deLZ77((byte *)_surface.pixels + (_y * _surface.pitch), dataPtr);
return; return;
} }