[Scummvm-cvs-logs] scummvm master -> 8c3e8624f04621d947f94bad6f19b55ad961530a
clone2727
clone2727 at gmail.com
Mon May 26 23:59:45 CEST 2014
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:
8c3e8624f0 IMAGE: Ensure the truemotion surface is cleared to black before decoding
Commit: 8c3e8624f04621d947f94bad6f19b55ad961530a
https://github.com/scummvm/scummvm/commit/8c3e8624f04621d947f94bad6f19b55ad961530a
Author: Matthew Hoops (clone2727 at gmail.com)
Date: 2014-05-26T17:55:39-04:00
Commit Message:
IMAGE: Ensure the truemotion surface is cleared to black before decoding
Changed paths:
image/codecs/truemotion1.cpp
diff --git a/image/codecs/truemotion1.cpp b/image/codecs/truemotion1.cpp
index b5f7c76..741b9d5 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;
More information about the Scummvm-git-logs
mailing list