aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/scalpel
diff options
context:
space:
mode:
authorMartin Kiewitz2015-06-10 00:04:55 +0200
committerWillem Jan Palenstijn2015-06-10 07:14:16 +0200
commit1c44fa5bbc5f91f0c48696c66b65d117457b2ec8 (patch)
treeec0c7cd34858b40edd508bcf46f5952b8ef5119c /engines/sherlock/scalpel
parent256158cbe225c2c8f2d663c7620d9d9ed9587b38 (diff)
parentce6ad7e6d8a9a499b5e1192947ef36efaae52ed3 (diff)
downloadscummvm-rg350-1c44fa5bbc5f91f0c48696c66b65d117457b2ec8.tar.gz
scummvm-rg350-1c44fa5bbc5f91f0c48696c66b65d117457b2ec8.tar.bz2
scummvm-rg350-1c44fa5bbc5f91f0c48696c66b65d117457b2ec8.zip
Merge branch 'master' of github.com:scummvm/scummvm
Diffstat (limited to 'engines/sherlock/scalpel')
-rw-r--r--engines/sherlock/scalpel/scalpel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/scalpel/scalpel.cpp b/engines/sherlock/scalpel/scalpel.cpp
index 9480bb4fc1..c5eaa9cc3c 100644
--- a/engines/sherlock/scalpel/scalpel.cpp
+++ b/engines/sherlock/scalpel/scalpel.cpp
@@ -187,11 +187,11 @@ ScalpelEngine::~ScalpelEngine() {
void ScalpelEngine::initialize() {
// 3DO actually uses RGB555, but some platforms of ours only support RGB565, so we use that
- const Graphics::PixelFormat *pixelFormatRGB565 = new Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0);
if (getPlatform() == Common::kPlatform3DO) {
+ const Graphics::PixelFormat pixelFormatRGB565 = Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0);
// 320x200 16-bit RGB565 for 3DO support
- initGraphics(320, 200, false, pixelFormatRGB565);
+ initGraphics(320, 200, false, &pixelFormatRGB565);
} else {
// 320x200 palettized
initGraphics(320, 200, false);