diff options
Diffstat (limited to 'engines/sherlock/surface.cpp')
-rw-r--r-- | engines/sherlock/surface.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sherlock/surface.cpp b/engines/sherlock/surface.cpp index 79711b44d7..60790df6b2 100644 --- a/engines/sherlock/surface.cpp +++ b/engines/sherlock/surface.cpp @@ -28,8 +28,8 @@ namespace Sherlock { -Surface::Surface(uint16 width, uint16 height, Common::Platform platform) : Fonts(), _freePixels(true) { - create(width, height, platform); +Surface::Surface(uint16 width, uint16 height) : Fonts(), _freePixels(true) { + create(width, height); } Surface::Surface() : Fonts(), _freePixels(false) { @@ -40,11 +40,11 @@ Surface::~Surface() { _surface.free(); } -void Surface::create(uint16 width, uint16 height, Common::Platform platform) { +void Surface::create(uint16 width, uint16 height) { if (_freePixels) _surface.free(); - if (platform == Common::kPlatform3DO) { + if (_vm->getPlatform() == Common::kPlatform3DO) { _surface.create(width, height, Graphics::PixelFormat(2, 5, 6, 5, 0, 11, 5, 0, 0)); } else { _surface.create(width, height, Graphics::PixelFormat::createFormatCLUT8()); |