diff options
author | Martin Kiewitz | 2010-06-23 12:58:14 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-06-23 12:58:14 +0000 |
commit | 3bc011357bba0104de2e7f910cde6a7d62d7581f (patch) | |
tree | fa47484e7283793976e14c4938c194e84348e781 /engines/sci/engine | |
parent | f0145e6dcd3f96225be7fc6c5b8aebce9ee545d8 (diff) | |
download | scummvm-rg350-3bc011357bba0104de2e7f910cde6a7d62d7581f.tar.gz scummvm-rg350-3bc011357bba0104de2e7f910cde6a7d62d7581f.tar.bz2 scummvm-rg350-3bc011357bba0104de2e7f910cde6a7d62d7581f.zip |
SCI: some initial work on global scaling
svn-id: r50179
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/selector.cpp | 1 | ||||
-rw-r--r-- | engines/sci/engine/static_selectors.cpp | 1 | ||||
-rw-r--r-- | engines/sci/engine/vm.h | 3 |
3 files changed, 4 insertions, 1 deletions
diff --git a/engines/sci/engine/selector.cpp b/engines/sci/engine/selector.cpp index 08e2ba5e99..cc2adeb62b 100644 --- a/engines/sci/engine/selector.cpp +++ b/engines/sci/engine/selector.cpp @@ -157,6 +157,7 @@ void Kernel::mapSelectors() { FIND_SELECTOR(scaleSignal); FIND_SELECTOR(scaleX); FIND_SELECTOR(scaleY); + FIND_SELECTOR(maxScale); FIND_SELECTOR(iconIndex); #ifdef ENABLE_SCI32 diff --git a/engines/sci/engine/static_selectors.cpp b/engines/sci/engine/static_selectors.cpp index eca18f67fb..c7ee7b854a 100644 --- a/engines/sci/engine/static_selectors.cpp +++ b/engines/sci/engine/static_selectors.cpp @@ -107,6 +107,7 @@ static const SelectorRemap sciSelectorRemap[] = { { SCI_VERSION_1_1, SCI_VERSION_1_1,"scaleSignal", 103 }, { SCI_VERSION_1_1, SCI_VERSION_1_1, "scaleX", 104 }, { SCI_VERSION_1_1, SCI_VERSION_1_1, "scaleY", 105 }, + { SCI_VERSION_1_1, SCI_VERSION_1_1, "maxScale", 106 }, { SCI_VERSION_NONE, SCI_VERSION_NONE, 0, 0 } }; diff --git a/engines/sci/engine/vm.h b/engines/sci/engine/vm.h index fa57a1151c..d4be76dd40 100644 --- a/engines/sci/engine/vm.h +++ b/engines/sci/engine/vm.h @@ -152,8 +152,9 @@ struct SelectorCache { Selector syncTime; // SCI1.1 specific selectors - Selector scaleSignal; // < Used by Animate() for cel scaling (SCI1.1+) + Selector scaleSignal; //< Used by kAnimate() for cel scaling (SCI1.1+) Selector scaleX, scaleY; ///< SCI1.1 view scaling + Selector maxScale; ///< SCI1.1 view scaling, limit for cel, when using global scaling // Used for auto detection purposes Selector overlay; ///< Used to determine if a game is using old gfx functions or not |