diff options
author | Chris Apers | 2003-08-18 10:59:21 +0000 |
---|---|---|
committer | Chris Apers | 2003-08-18 10:59:21 +0000 |
commit | a47e80cb55af9baff82c86c9e9751e876c83a915 (patch) | |
tree | de1d21ac1613bac022aebda8ba23fdcee4c907b9 /scumm/smush/codec47.cpp | |
parent | 3c5f641f482ea799f59dcd3759d06bde1f57cff8 (diff) | |
download | scummvm-rg350-a47e80cb55af9baff82c86c9e9751e876c83a915.tar.gz scummvm-rg350-a47e80cb55af9baff82c86c9e9751e876c83a915.tar.bz2 scummvm-rg350-a47e80cb55af9baff82c86c9e9751e876c83a915.zip |
Updated globals access for PalmOS
svn-id: r9759
Diffstat (limited to 'scumm/smush/codec47.cpp')
-rw-r--r-- | scumm/smush/codec47.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scumm/smush/codec47.cpp b/scumm/smush/codec47.cpp index 4083528635..cacd1bd937 100644 --- a/scumm/smush/codec47.cpp +++ b/scumm/smush/codec47.cpp @@ -82,6 +82,9 @@ static int8 codec47_table_big2[] = { 0, 0, 0, 0, 1, 3, 4, 6, 7, 7, 7, 7, 6, 4, 3, 1, }; +#ifdef __PALM_OS__ +static int8 *codec47_table; +#else static int8 codec47_table[] = { 0, 0, -1, -43, 6, -43, -9, -42, 13, -41, -16, -40, 19, -39, -23, -36, 26, -34, -2, -33, @@ -135,6 +138,7 @@ static int8 codec47_table[] = { 23, 36, -19, 39, 16, 40, -13, 41, 9, 42, -6, 43, 1, 43, 0, 0, 0, 0, 0, 0 }; +#endif void Codec47Decoder::makeTablesInterpolation(int param) { int32 variable1, variable2; @@ -612,3 +616,15 @@ bool Codec47Decoder::decode(byte *dst, const byte *src) { return true; } +#ifdef __PALM_OS__ +#include "scumm_globals.h" + +_GINIT(Codec47) +_GSETPTR(codec47_table, GBVARS_CODEC47TABLE_INDEX, int8, GBVARS_SCUMM) +_GEND + +_GRELEASE(Codec47) +_GRELEASEPTR(GBVARS_CODEC47TABLE_INDEX, GBVARS_SCUMM) +_GEND + +#endif |