diff options
author | Paul Gilbert | 2015-05-24 07:46:25 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-05-24 07:46:25 -0400 |
commit | 1e291b0b25719f61f7173d9f8ae7e0da5164b526 (patch) | |
tree | 74e622b98d95c53a30d0d4a260f1148ed5563d8c /engines/sherlock/tattoo | |
parent | bcc31b2a663545ec448d886d8ed16546593f849e (diff) | |
download | scummvm-rg350-1e291b0b25719f61f7173d9f8ae7e0da5164b526.tar.gz scummvm-rg350-1e291b0b25719f61f7173d9f8ae7e0da5164b526.tar.bz2 scummvm-rg350-1e291b0b25719f61f7173d9f8ae7e0da5164b526.zip |
SHERLOCK: Implemented initial RT palette loading
Diffstat (limited to 'engines/sherlock/tattoo')
-rw-r--r-- | engines/sherlock/tattoo/tattoo.cpp | 12 | ||||
-rw-r--r-- | engines/sherlock/tattoo/tattoo.h | 5 |
2 files changed, 17 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/tattoo.cpp b/engines/sherlock/tattoo/tattoo.cpp index 9039e3f9d4..47a7c2a9ba 100644 --- a/engines/sherlock/tattoo/tattoo.cpp +++ b/engines/sherlock/tattoo/tattoo.cpp @@ -47,6 +47,9 @@ void TattooEngine::initialize() { // Starting scene _scene->_goToScene = 91; + + // Load an initial palette + loadInitialPalette(); } /** @@ -56,6 +59,15 @@ void TattooEngine::startScene() { // TODO } +void TattooEngine::loadInitialPalette() { + byte palette[768]; + Common::SeekableReadStream *stream = _res->load("room.pal"); + stream->read(palette, PALETTE_SIZE); + _screen->translatePalette(palette); + _screen->setPalette(palette); + + delete stream; +} } // End of namespace Tattoo diff --git a/engines/sherlock/tattoo/tattoo.h b/engines/sherlock/tattoo/tattoo.h index 7bdeec55d1..b9224e06ba 100644 --- a/engines/sherlock/tattoo/tattoo.h +++ b/engines/sherlock/tattoo/tattoo.h @@ -30,6 +30,11 @@ namespace Sherlock { namespace Tattoo { class TattooEngine : public SherlockEngine { +private: + /** + * Loads the initial palette for the game + */ + void loadInitialPalette(); protected: virtual void initialize(); |