[Scummvm-git-logs] scummvm master -> 7bbb639bd72087e07230cff071caf18cb86347e7

sev- sev at scummvm.org
Sun Oct 4 16:27:36 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
7bbb639bd7 VIDEO: add support for BLACK chunk in FLIC decoder


Commit: 7bbb639bd72087e07230cff071caf18cb86347e7
    https://github.com/scummvm/scummvm/commit/7bbb639bd72087e07230cff071caf18cb86347e7
Author: Andrei Prykhodko (whiterandrek at gmail.com)
Date: 2020-10-04T18:27:33+02:00

Commit Message:
VIDEO: add support for BLACK chunk in FLIC decoder

Changed paths:
    video/flic_decoder.cpp


diff --git a/video/flic_decoder.cpp b/video/flic_decoder.cpp
index 72a8aa0c3d..d9e79bc070 100644
--- a/video/flic_decoder.cpp
+++ b/video/flic_decoder.cpp
@@ -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;




More information about the Scummvm-git-logs mailing list