aboutsummaryrefslogtreecommitdiff
path: root/graphics/pict.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pict.cpp')
-rw-r--r--graphics/pict.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/pict.cpp b/graphics/pict.cpp
index b61b000acd..acade48515 100644
--- a/graphics/pict.cpp
+++ b/graphics/pict.cpp
@@ -212,7 +212,7 @@ void PictDecoder::decodeDirectBitsRect(Common::SeekableReadStream *stream, bool
bytesPerPixel = directBitsData.pixMap.pixelSize / 8;
_outputSurface = new Graphics::Surface();
- _outputSurface->create(width, height, (bytesPerPixel == 1) ? 1 : _pixelFormat.bytesPerPixel);
+ _outputSurface->create(width, height, (bytesPerPixel == 1) ? PixelFormat::createFormatCLUT8() : _pixelFormat);
byte *buffer = new byte[width * height * bytesPerPixel];
// Read in amount of data per row