From 8c3e8624f04621d947f94bad6f19b55ad961530a Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Mon, 26 May 2014 17:55:39 -0400 Subject: IMAGE: Ensure the truemotion surface is cleared to black before decoding --- image/codecs/truemotion1.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'image') diff --git a/image/codecs/truemotion1.cpp b/image/codecs/truemotion1.cpp index b5f7c76f6b..741b9d51eb 100644 --- a/image/codecs/truemotion1.cpp +++ b/image/codecs/truemotion1.cpp @@ -30,6 +30,7 @@ #include "image/codecs/truemotion1data.h" #include "common/stream.h" #include "common/textconsole.h" +#include "common/rect.h" #include "common/util.h" namespace Image { @@ -91,6 +92,7 @@ static const CompressionType compressionTypes[17] = { TrueMotion1Decoder::TrueMotion1Decoder(uint16 width, uint16 height) { _surface = new Graphics::Surface(); _surface->create(width, height, getPixelFormat()); + _surface->fillRect(Common::Rect(width, height), getPixelFormat().RGBToColor(0, 0, 0)); _vertPred = 0; -- cgit v1.2.3