mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
VIDEO: Fix deLZ77'ing video data directly onto the video surface
svn-id: r51890
This commit is contained in:
parent
a57e53c986
commit
6ebec969c5
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user