[Scummvm-cvs-logs] CVS: scummvm/scumm/smush codec47.cpp,1.57,1.58

Chris Apers chrilith at users.sourceforge.net
Mon Aug 18 04:05:07 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm/smush
In directory sc8-pr-cvs1:/tmp/cvs-serv2175/smush

Modified Files:
	codec47.cpp 
Log Message:
Updated globals access for PalmOS

Index: codec47.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/smush/codec47.cpp,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- codec47.cpp	17 Aug 2003 16:40:36 -0000	1.57
+++ codec47.cpp	18 Aug 2003 10:56:21 -0000	1.58
@@ -82,6 +82,9 @@
   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 @@
 	 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 @@
 	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





More information about the Scummvm-git-logs mailing list