diff options
author | Johannes Schickel | 2011-04-17 16:30:47 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-04-17 16:30:47 +0200 |
commit | 5af4b64c29e5b22bf7a63e335344f11e16481f78 (patch) | |
tree | 8cde824b035047071c38b56f287a530b875364b6 /engines | |
parent | aed601e3556883527454f100bccd14965a4aa2cf (diff) | |
download | scummvm-rg350-5af4b64c29e5b22bf7a63e335344f11e16481f78.tar.gz scummvm-rg350-5af4b64c29e5b22bf7a63e335344f11e16481f78.tar.bz2 scummvm-rg350-5af4b64c29e5b22bf7a63e335344f11e16481f78.zip |
SCI: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/video/robot_decoder.cpp | 2 | ||||
-rw-r--r-- | engines/sci/video/seq_decoder.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/video/robot_decoder.cpp b/engines/sci/video/robot_decoder.cpp index ecdce3bd6b..25c43b56df 100644 --- a/engines/sci/video/robot_decoder.cpp +++ b/engines/sci/video/robot_decoder.cpp @@ -126,7 +126,7 @@ bool RobotDecoder::loadStream(Common::SeekableReadStream *stream) { readPaletteChunk(_header.paletteDataSize); readFrameSizesChunk(); calculateVideoDimensions(); - _surface->create(_width, _height, 1); + _surface->create(_width, _height, Graphics::PixelFormat::createFormatCLUT8()); return true; } diff --git a/engines/sci/video/seq_decoder.cpp b/engines/sci/video/seq_decoder.cpp index 0e69a9a352..962884b494 100644 --- a/engines/sci/video/seq_decoder.cpp +++ b/engines/sci/video/seq_decoder.cpp @@ -61,7 +61,7 @@ bool SeqDecoder::loadStream(Common::SeekableReadStream *stream) { _fileStream = stream; _surface = new Graphics::Surface(); - _surface->create(SEQ_SCREEN_WIDTH, SEQ_SCREEN_HEIGHT, 1); + _surface->create(SEQ_SCREEN_WIDTH, SEQ_SCREEN_HEIGHT, Graphics::PixelFormat::createFormatCLUT8()); _frameCount = _fileStream->readUint16LE(); |