mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-17 23:44:22 +00:00
DIRECTOR: Fix regression in BITD image parsing
This commit is contained in:
parent
ae6155f781
commit
7913684285
@ -202,8 +202,8 @@ bool BITDDecoder::loadStream(Common::SeekableReadStream &stream) {
|
||||
stream.readUint16BE();
|
||||
}
|
||||
|
||||
if (pixels.size() < _surface->pitch * _surface->h) {
|
||||
int tail = _surface->pitch * _surface->h - pixels.size();
|
||||
if (pixels.size() < _surface->w * _surface->h) {
|
||||
int tail = _surface->w * _surface->h - pixels.size();
|
||||
|
||||
warning("BITDDecoder::loadStream(): premature end of stream (%d of %d pixels)",
|
||||
pixels.size(), pixels.size() + tail);
|
||||
|
Loading…
x
Reference in New Issue
Block a user