SCI: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
This commit is contained in:
parent
aed601e355
commit
5af4b64c29
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue