mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-21 01:08:25 +00:00
TOON: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
This commit is contained in:
parent
933c4f93f5
commit
0342332be0
@ -50,7 +50,7 @@ bool ToonstruckSmackerDecoder::loadFile(const Common::String &filename) {
|
||||
delete _surface;
|
||||
}
|
||||
_surface = new Graphics::Surface();
|
||||
_surface->create(640, 400, 1);
|
||||
_surface->create(640, 400, Graphics::PixelFormat::createFormatCLUT8());
|
||||
_header.flags = 4;
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ void ToonEngine::init() {
|
||||
_hotspots = new Hotspots(this);
|
||||
|
||||
_mainSurface = new Graphics::Surface();
|
||||
_mainSurface->create(TOON_BACKBUFFER_WIDTH, TOON_BACKBUFFER_HEIGHT, 1);
|
||||
_mainSurface->create(TOON_BACKBUFFER_WIDTH, TOON_BACKBUFFER_HEIGHT, Graphics::PixelFormat::createFormatCLUT8());
|
||||
|
||||
_finalPalette = new uint8[768];
|
||||
_backupPalette = new uint8[768];
|
||||
|
Loading…
Reference in New Issue
Block a user