[Scummvm-cvs-logs] CVS: scummvm-new/common util.h,1.1.1.1,1.2

Max Horn fingolfin at users.sourceforge.net
Sun Aug 25 03:51:03 CEST 2002


Update of /cvsroot/scummvm/scummvm-new/common
In directory usw-pr-cvs1:/tmp/cvs-serv7513/common

Modified Files:
	util.h 
Log Message:
fixed some endian issues in the new SMUSH decoder; cleanup

Index: util.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm-new/common/util.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- util.h	21 Aug 2002 16:07:23 -0000	1.1.1.1
+++ util.h	25 Aug 2002 10:50:18 -0000	1.2
@@ -23,6 +23,19 @@
 
 #include "scummsys.h"
 
+#ifndef ABS
+#define ABS(x) ((x)>=0?(x):-(x))
+#endif
+
+#ifndef MIN
+#define	MIN(a,b) (((a)<(b))?(a):(b))
+#endif
+
+#ifndef MAX
+#define	MAX(a,b) (((a)>(b))?(a):(b))
+#endif
+
+
 int RGBMatch(byte *palette, int r, int g, int b);
 int Blend(int src, int dst, byte *palette);
 void ClearBlendCache(byte *palette, int weight);





More information about the Scummvm-git-logs mailing list