VIDEO: add support for BLACK chunk in FLIC decoder

This commit is contained in:
Andrei Prykhodko 2020-10-04 17:57:34 +03:00 committed by Eugene Sandulenko
parent ec24687ce4
commit 7bbb639bd7

View File

@ -158,6 +158,7 @@ Graphics::PixelFormat FlicDecoder::FlicVideoTrack::getPixelFormat() const {
#define FLI_SETPAL 4
#define FLI_SS2 7
#define FLI_BLACK 13
#define FLI_BRUN 15
#define FLI_COPY 16
#define PSTAMP 18
@ -234,6 +235,11 @@ void FlicDecoder::FlicVideoTrack::handleFrame() {
case FLI_SS2:
decodeDeltaFLC(data);
break;
case FLI_BLACK:
_surface->fillRect(Common::Rect(0, 0, getWidth(), getHeight()), 0);
_dirtyRects.clear();
_dirtyRects.push_back(Common::Rect(0, 0, getWidth(), getHeight()));
break;
case FLI_BRUN:
decodeByteRun(data);
break;