aboutsummaryrefslogtreecommitdiff
path: root/video/codecs/msvideo1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'video/codecs/msvideo1.cpp')
-rw-r--r--video/codecs/msvideo1.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/codecs/msvideo1.cpp b/video/codecs/msvideo1.cpp
index e173f45239..93e9aaae64 100644
--- a/video/codecs/msvideo1.cpp
+++ b/video/codecs/msvideo1.cpp
@@ -39,7 +39,8 @@ namespace Video {
MSVideo1Decoder::MSVideo1Decoder(uint16 width, uint16 height, byte bitsPerPixel) : Codec() {
_surface = new Graphics::Surface();
- _surface->create(width, height, (bitsPerPixel == 8) ? 1 : 2);
+ // TODO: Specify the correct pixel format for 2Bpp mode.
+ _surface->create(width, height, (bitsPerPixel == 8) ? Graphics::PixelFormat::createFormatCLUT8() : Graphics::PixelFormat(2, 0, 0, 0, 0, 0, 0, 0, 0));
_bitsPerPixel = bitsPerPixel;
}