aboutsummaryrefslogtreecommitdiff
path: root/engines/toon
diff options
context:
space:
mode:
authorJohannes Schickel2011-04-17 16:34:00 +0200
committerJohannes Schickel2011-04-17 16:34:00 +0200
commit0342332be06ab1fd029bb47aad4e9d9bc1aacd2b (patch)
treef079e23234f2fab8f1fac0fabf4b259b3cbadd09 /engines/toon
parent933c4f93f5dfc57520c2ef4f6ba29eb22e6a7dfc (diff)
downloadscummvm-rg350-0342332be06ab1fd029bb47aad4e9d9bc1aacd2b.tar.gz
scummvm-rg350-0342332be06ab1fd029bb47aad4e9d9bc1aacd2b.tar.bz2
scummvm-rg350-0342332be06ab1fd029bb47aad4e9d9bc1aacd2b.zip
TOON: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
Diffstat (limited to 'engines/toon')
-rw-r--r--engines/toon/movie.cpp2
-rw-r--r--engines/toon/toon.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/toon/movie.cpp b/engines/toon/movie.cpp
index 4305abb62b..5ccfcbb8ec 100644
--- a/engines/toon/movie.cpp
+++ b/engines/toon/movie.cpp
@@ -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;
}
diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp
index 2040668245..c3613e3f52 100644
--- a/engines/toon/toon.cpp
+++ b/engines/toon/toon.cpp
@@ -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];