diff options
author | Martin Kiewitz | 2015-06-12 18:38:26 +0200 |
---|---|---|
committer | Martin Kiewitz | 2015-06-12 18:38:26 +0200 |
commit | 645f51e0799bd7fc58e04c67b49b9d5192b698b4 (patch) | |
tree | 10de16d388435fa8fb8093bb895d1ae6054a927b /engines | |
parent | 4858adb72d8d83ea5ae9f024bbe978023a19ef06 (diff) | |
download | scummvm-rg350-645f51e0799bd7fc58e04c67b49b9d5192b698b4.tar.gz scummvm-rg350-645f51e0799bd7fc58e04c67b49b9d5192b698b4.tar.bz2 scummvm-rg350-645f51e0799bd7fc58e04c67b49b9d5192b698b4.zip |
SHERLOCK: 3DO: basic UI support
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sherlock/scalpel/scalpel_user_interface.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/engines/sherlock/scalpel/scalpel_user_interface.cpp b/engines/sherlock/scalpel/scalpel_user_interface.cpp index acb648c3ad..80a36fe9cb 100644 --- a/engines/sherlock/scalpel/scalpel_user_interface.cpp +++ b/engines/sherlock/scalpel/scalpel_user_interface.cpp @@ -86,8 +86,15 @@ const char *const MUSE[] = { ScalpelUserInterface::ScalpelUserInterface(SherlockEngine *vm): UserInterface(vm) { if (_vm->_interactiveFl) { - _controls = new ImageFile("menu.all"); - _controlPanel = new ImageFile("controls.vgs"); + if (_vm->getPlatform() != Common::kPlatform3DO) { + // PC + _controls = new ImageFile("menu.all"); + _controlPanel = new ImageFile("controls.vgs"); + } else { + // 3DO + _controls = new ImageFile3DO("menu.all", true); + _controlPanel = new ImageFile3DO("controls.vgs", true); + } } else { _controls = nullptr; _controlPanel = nullptr; @@ -122,9 +129,6 @@ void ScalpelUserInterface::reset() { void ScalpelUserInterface::drawInterface(int bufferNum) { Screen &screen = *_vm->_screen; - if (_vm->getPlatform() == Common::kPlatform3DO) - return; // 3DO: don't do anything for now - if (bufferNum & 1) screen._backBuffer1.transBlitFrom((*_controlPanel)[0], Common::Point(0, CONTROLS_Y)); if (bufferNum & 2) |