aboutsummaryrefslogtreecommitdiff
path: root/akos.cpp
diff options
context:
space:
mode:
authorVincent Hamm2002-04-21 19:38:00 +0000
committerVincent Hamm2002-04-21 19:38:00 +0000
commit1b1d5795a88cd00ac06c335fab34598a9aad2674 (patch)
treeb4fdb5f00c1da33043b85f2fde749934d9bcbcc7 /akos.cpp
parentf90a05e3b1d3136eba060e477f2f6061eaff9d08 (diff)
downloadscummvm-rg350-1b1d5795a88cd00ac06c335fab34598a9aad2674.tar.gz
scummvm-rg350-1b1d5795a88cd00ac06c335fab34598a9aad2674.tar.bz2
scummvm-rg350-1b1d5795a88cd00ac06c335fab34598a9aad2674.zip
Some new V7 scummvars. Implemented custom scale table in AKOS codec 1
svn-id: r4038
Diffstat (limited to 'akos.cpp')
-rw-r--r--akos.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/akos.cpp b/akos.cpp
index b5a444bc43..d8e7cec668 100644
--- a/akos.cpp
+++ b/akos.cpp
@@ -583,7 +583,15 @@ void Scumm::akos_codec1(AkosRenderer * ar)
int step;
/* implement custom scale table */
- ar->v1.scaletable = default_scale_table;
+
+ if(isGlobInMemory(rtString,_vars[VAR_CUSTOMSCALETABLE]))
+ {
+ ar->v1.scaletable = getStringAddressVar(VAR_CUSTOMSCALETABLE);
+ }
+ else
+ {
+ ar->v1.scaletable = default_scale_table;
+ }
/* Setup color decoding variables */
num_colors = getResourceDataSize(ar->akpl);