mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
IMAGE: Ensure the truemotion surface is cleared to black before decoding
This commit is contained in:
parent
9fc10d9739
commit
8c3e8624f0
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user