From 5e279996eb1f448712d1a6b64218a6cf65159a57 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 17 Apr 2011 16:35:12 +0200 Subject: VIDEO: Prefer Surface::create taking a PixelFormat over the one taking a byte depth. Certain codecs seem to use a Surface with Bpp 2, but do not have any proper format description. Whoever is maintaining these should check this commit and fix the format properly. --- video/codecs/truemotion1.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video/codecs/truemotion1.cpp') diff --git a/video/codecs/truemotion1.cpp b/video/codecs/truemotion1.cpp index a0456869ab..a6483ec665 100644 --- a/video/codecs/truemotion1.cpp +++ b/video/codecs/truemotion1.cpp @@ -92,7 +92,8 @@ TrueMotion1Decoder::TrueMotion1Decoder(uint16 width, uint16 height) { _width = width; _height = height; - _surface->create(width, height, 2); + // TODO: Use correct PixelFormat + _surface->create(width, height, Graphics::PixelFormat(2, 0, 0, 0, 0, 0, 0, 0, 0)); // there is a vertical predictor for each pixel in a line; each vertical // predictor is 0 to start with -- cgit v1.2.3