SCI: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.

This commit is contained in:
Johannes Schickel 2011-04-17 16:30:47 +02:00
parent aed601e355
commit 5af4b64c29
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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();