aboutsummaryrefslogtreecommitdiff
path: root/engines/made/screen.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2011-04-17 16:29:23 +0200
committerJohannes Schickel2011-04-17 16:29:23 +0200
commitb6fc71b0c5192aea09a240f84e4c380b52c1710b (patch)
tree457b08dc3dcaee509a6154a3b9b3579b3d4b228d /engines/made/screen.cpp
parent7b9b5681488f04a817d70812c18a8f1f88fbc931 (diff)
downloadscummvm-rg350-b6fc71b0c5192aea09a240f84e4c380b52c1710b.tar.gz
scummvm-rg350-b6fc71b0c5192aea09a240f84e4c380b52c1710b.tar.bz2
scummvm-rg350-b6fc71b0c5192aea09a240f84e4c380b52c1710b.zip
MADE: Prefer Surface::create taking a PixelFormat over the one taking a byte depth.
Diffstat (limited to 'engines/made/screen.cpp')
-rw-r--r--engines/made/screen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/made/screen.cpp b/engines/made/screen.cpp
index 2649e2bd37..fe2bf64b82 100644
--- a/engines/made/screen.cpp
+++ b/engines/made/screen.cpp
@@ -36,10 +36,10 @@ Screen::Screen(MadeEngine *vm) : _vm(vm) {
_newPalette = new byte[768];
_backgroundScreen = new Graphics::Surface();
- _backgroundScreen->create(320, 200, 1);
+ _backgroundScreen->create(320, 200, Graphics::PixelFormat::createFormatCLUT8());
_workScreen = new Graphics::Surface();
- _workScreen->create(320, 200, 1);
+ _workScreen->create(320, 200, Graphics::PixelFormat::createFormatCLUT8());
_backgroundScreenDrawCtx.clipRect = Common::Rect(320, 200);
_workScreenDrawCtx.clipRect = Common::Rect(320, 200);
@@ -51,7 +51,7 @@ Screen::Screen(MadeEngine *vm) : _vm(vm) {
// Screen mask is only needed in v2 games
if (_vm->getGameID() != GID_RTZ) {
_screenMask = new Graphics::Surface();
- _screenMask->create(320, 200, 1);
+ _screenMask->create(320, 200, Graphics::PixelFormat::createFormatCLUT8());
_maskDrawCtx.clipRect = Common::Rect(320, 200);
_maskDrawCtx.destSurface = _screenMask;
}