mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-20 19:21:46 +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_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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user