diff options
author | Matthew Hoops | 2011-02-17 13:13:30 -0500 |
---|---|---|
committer | Matthew Hoops | 2011-02-17 13:38:23 -0500 |
commit | 266806d8925330ec0d9e020fafffd74a2cb272e6 (patch) | |
tree | d53d8b4365d819573093fb89262947e62f98d8d7 /engines/sci/sci.h | |
parent | b5d1c669158951d4ea1633d3c10c58729d28fda5 (diff) | |
download | scummvm-rg350-266806d8925330ec0d9e020fafffd74a2cb272e6.tar.gz scummvm-rg350-266806d8925330ec0d9e020fafffd74a2cb272e6.tar.bz2 scummvm-rg350-266806d8925330ec0d9e020fafffd74a2cb272e6.zip |
SCI: Fix Mac icon bar palettes
The Mac icon bar uses a palette from the executable and keeps those entries in the palette constantly.
In addition, we're now performing gamma correction on the Mac-based colors so that they are in the same gamma as SCI. The color matching now works with this and using the same color finding as the Mac Palette Manager.
Diffstat (limited to 'engines/sci/sci.h')
-rw-r--r-- | engines/sci/sci.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/sci/sci.h b/engines/sci/sci.h index 9404425af6..b3e398325f 100644 --- a/engines/sci/sci.h +++ b/engines/sci/sci.h @@ -27,6 +27,7 @@ #define SCI_H #include "engines/engine.h" +#include "common/macresman.h" #include "common/util.h" #include "common/random.h" #include "sci/engine/vm_types.h" // for Selector @@ -323,6 +324,8 @@ public: DebugState _debugState; + Common::MacResManager *getMacExecutable() { return &_macExecutable; } + private: /** * Initializes a SCI game @@ -349,6 +352,11 @@ private: */ void exitGame(); + /** + * Loads the Mac executable for SCI1 games + */ + void loadMacExecutable(); + void initStackBaseWithSelector(Selector selector); bool gameHasFanMadePatch(); @@ -366,6 +374,7 @@ private: reg_t _gameSuperClassAddress; // Address of the super class of the game object Console *_console; Common::RandomSource _rng; + Common::MacResManager _macExecutable; }; |