VIDEO: Fix a typo (minus vs. plus) in the VMD decoder

This commit is contained in:
Sven Hesse 2013-04-13 15:22:06 +02:00
parent 5bd1bf1d6d
commit fad5cf7243

View File

@ -2296,7 +2296,7 @@ bool VMDDecoder::renderFrame(Common::Rect &rect) {
// Directly uncompress onto the video surface
const int offsetX = rect.left * _surface.format.bytesPerPixel;
const int offsetY = (_y + rect.top) * _surface.pitch;
const int offset = offsetX - offsetY;
const int offset = offsetX + offsetY;
if (deLZ77((byte *)_surface.pixels + offset, dataPtr, dataSize,
_surface.w * _surface.h * _surface.format.bytesPerPixel - offset))