From 79ed190523656966b39f28720fe83afc045040b5 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 17 Apr 2011 22:09:13 +0200 Subject: VIDEO: Set up the pixel format for the TrueMotion1 codec properly. --- video/codecs/truemotion1.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'video') diff --git a/video/codecs/truemotion1.cpp b/video/codecs/truemotion1.cpp index a6483ec665..00c15871a2 100644 --- a/video/codecs/truemotion1.cpp +++ b/video/codecs/truemotion1.cpp @@ -92,8 +92,7 @@ TrueMotion1Decoder::TrueMotion1Decoder(uint16 width, uint16 height) { _width = width; _height = height; - // TODO: Use correct PixelFormat - _surface->create(width, height, Graphics::PixelFormat(2, 0, 0, 0, 0, 0, 0, 0, 0)); + _surface->create(width, height, getPixelFormat()); // there is a vertical predictor for each pixel in a line; each vertical // predictor is 0 to start with -- cgit v1.2.3