aboutsummaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorJohannes Schickel2011-04-17 22:09:13 +0200
committerJohannes Schickel2011-04-17 22:09:55 +0200
commit79ed190523656966b39f28720fe83afc045040b5 (patch)
tree598bbd706edb89b1564c0c75d3ad288001cfc34f /video
parentda734a4af024a72ee155bc25d6e45f994de6b060 (diff)
downloadscummvm-rg350-79ed190523656966b39f28720fe83afc045040b5.tar.gz
scummvm-rg350-79ed190523656966b39f28720fe83afc045040b5.tar.bz2
scummvm-rg350-79ed190523656966b39f28720fe83afc045040b5.zip
VIDEO: Set up the pixel format for the TrueMotion1 codec properly.
Diffstat (limited to 'video')
-rw-r--r--video/codecs/truemotion1.cpp3
1 files changed, 1 insertions, 2 deletions
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