IMAGE: Ensure the truemotion surface is cleared to black before decoding

This commit is contained in:
Matthew Hoops 2014-05-26 17:55:39 -04:00
parent 9fc10d9739
commit 8c3e8624f0

View File

@ -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;