diff options
| author | Matthew Hoops | 2014-05-26 17:55:39 -0400 |
|---|---|---|
| committer | Matthew Hoops | 2014-05-26 17:55:39 -0400 |
| commit | 8c3e8624f04621d947f94bad6f19b55ad961530a (patch) | |
| tree | fdb0dfa7724a61b8b9317c02be3168f4d2a3f91a /image/codecs | |
| parent | 9fc10d9739217024e2435bcf1466b101163a2e56 (diff) | |
| download | scummvm-rg350-8c3e8624f04621d947f94bad6f19b55ad961530a.tar.gz scummvm-rg350-8c3e8624f04621d947f94bad6f19b55ad961530a.tar.bz2 scummvm-rg350-8c3e8624f04621d947f94bad6f19b55ad961530a.zip | |
IMAGE: Ensure the truemotion surface is cleared to black before decoding
Diffstat (limited to 'image/codecs')
| -rw-r--r-- | image/codecs/truemotion1.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
