mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 19:51:49 +00:00
VIDEO: add support for BLACK chunk in FLIC decoder
This commit is contained in:
parent
ec24687ce4
commit
7bbb639bd7
@ -158,6 +158,7 @@ Graphics::PixelFormat FlicDecoder::FlicVideoTrack::getPixelFormat() const {
|
|||||||
|
|
||||||
#define FLI_SETPAL 4
|
#define FLI_SETPAL 4
|
||||||
#define FLI_SS2 7
|
#define FLI_SS2 7
|
||||||
|
#define FLI_BLACK 13
|
||||||
#define FLI_BRUN 15
|
#define FLI_BRUN 15
|
||||||
#define FLI_COPY 16
|
#define FLI_COPY 16
|
||||||
#define PSTAMP 18
|
#define PSTAMP 18
|
||||||
@ -234,6 +235,11 @@ void FlicDecoder::FlicVideoTrack::handleFrame() {
|
|||||||
case FLI_SS2:
|
case FLI_SS2:
|
||||||
decodeDeltaFLC(data);
|
decodeDeltaFLC(data);
|
||||||
break;
|
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:
|
case FLI_BRUN:
|
||||||
decodeByteRun(data);
|
decodeByteRun(data);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user