diff options
author | Johannes Schickel | 2011-04-17 16:35:12 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-04-17 16:35:12 +0200 |
commit | 5e279996eb1f448712d1a6b64218a6cf65159a57 (patch) | |
tree | fb71f76a3de9f4a7e39b8c04c13c3aa081d8da10 /video/flic_decoder.cpp | |
parent | 2329a00873e2cea79dae2ffe1839501e05b39fe4 (diff) | |
download | scummvm-rg350-5e279996eb1f448712d1a6b64218a6cf65159a57.tar.gz scummvm-rg350-5e279996eb1f448712d1a6b64218a6cf65159a57.tar.bz2 scummvm-rg350-5e279996eb1f448712d1a6b64218a6cf65159a57.zip |
VIDEO: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
Certain codecs seem to use a Surface with Bpp 2, but do not have any proper
format description. Whoever is maintaining these should check this commit and
fix the format properly.
Diffstat (limited to 'video/flic_decoder.cpp')
-rw-r--r-- | video/flic_decoder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/flic_decoder.cpp b/video/flic_decoder.cpp index 90f7a8e9ac..38e82906ba 100644 --- a/video/flic_decoder.cpp +++ b/video/flic_decoder.cpp @@ -79,7 +79,7 @@ bool FlicDecoder::loadStream(Common::SeekableReadStream *stream) { _offsetFrame2 = _fileStream->readUint32LE(); _surface = new Graphics::Surface(); - _surface->create(width, height, 1); + _surface->create(width, height, Graphics::PixelFormat::createFormatCLUT8()); _palette = (byte *)malloc(3 * 256); memset(_palette, 0, 3 * 256); _paletteChanged = false; @@ -226,7 +226,7 @@ const Graphics::Surface *FlicDecoder::decodeNextFrame() { _surface->free(); delete _surface; _surface = new Graphics::Surface(); - _surface->create(newWidth, newHeight, 1); + _surface->create(newWidth, newHeight, Graphics::PixelFormat::createFormatCLUT8()); } } break; |