[Scummvm-cvs-logs] CVS: scummvm/queen graphics.h,1.38,1.39

Gregory Montoir cyx at users.sourceforge.net
Wed Nov 26 12:42:09 CET 2003


Update of /cvsroot/scummvm/scummvm/queen
In directory sc8-pr-cvs1:/tmp/cvs-serv26959

Modified Files:
	graphics.h 
Log Message:
use enum instead of define (purely cosmetic)

Index: graphics.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/graphics.h,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- graphics.h	17 Nov 2003 09:19:36 -0000	1.38
+++ graphics.h	26 Nov 2003 20:41:54 -0000	1.39
@@ -30,13 +30,6 @@
 namespace Queen {
 
 
-#define MAX_BANK_SIZE      110
-#define MAX_FRAMES_NUMBER  256
-#define MAX_BANKS_NUMBER    18
-#define MAX_BOBS_NUMBER     64
-
-
-
 struct BobFrame {
 	uint16 width, height;
 	uint16 xhotspot, yhotspot;
@@ -193,14 +186,18 @@
 
 	void update(uint16 room);
 
-
-private:
-
 	enum {
-		MAX_STRING_LENGTH = 255,
-		MAX_STRING_SIZE = (MAX_STRING_LENGTH + 1),
+		MAX_BANK_SIZE       = 110,
+		MAX_FRAMES_NUMBER   = 256,
+		MAX_BANKS_NUMBER    =  18,
+		MAX_BOBS_NUMBER     =  64,
+		MAX_STRING_LENGTH   = 255,
+		MAX_STRING_SIZE     = (MAX_STRING_LENGTH + 1),
 		BOB_SHRINK_BUF_SIZE = 60000
 	};
+
+
+private:
 
 	struct PackedBank {
 		uint32 indexes[MAX_BANK_SIZE];





More information about the Scummvm-git-logs mailing list