aboutsummaryrefslogtreecommitdiff
path: root/video/codecs/qtrle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'video/codecs/qtrle.cpp')
-rw-r--r--video/codecs/qtrle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/codecs/qtrle.cpp b/video/codecs/qtrle.cpp
index 19835aed78..0ae27f6284 100644
--- a/video/codecs/qtrle.cpp
+++ b/video/codecs/qtrle.cpp
@@ -50,7 +50,7 @@ QTRLEDecoder::QTRLEDecoder(uint16 width, uint16 height, byte bitsPerPixel) : Cod
debug(2, "QTRLE corrected width: %d", width);
_surface = new Graphics::Surface();
- _surface->create(width, height, _bitsPerPixel <= 8 ? 1 : _pixelFormat.bytesPerPixel);
+ _surface->create(width, height, _bitsPerPixel <= 8 ? Graphics::PixelFormat::createFormatCLUT8() : _pixelFormat);
}
#define CHECK_STREAM_PTR(n) \