[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src globals.h,1.5,1.6
Chris Apers
chrilith at users.sourceforge.net
Tue Sep 23 09:05:12 CEST 2003
Update of /cvsroot/scummvm/scummvm/backends/PalmOS/Src
In directory sc8-pr-cvs1:/tmp/cvs-serv13765
Modified Files:
globals.h
Log Message:
Options flag
Index: globals.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/globals.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- globals.h 18 Aug 2003 10:47:14 -0000 1.5
+++ globals.h 23 Sep 2003 16:04:10 -0000 1.6
@@ -23,23 +23,38 @@
#ifndef GLOBALS_H
#define GLOBALS_H
+#include <VFSMgr.h>
+
+enum {
+ optNone = 0,
+ optIsARMDevice = 1 << 0,
+ optIsOS5Device = 1 << 1,
+ optIsClieDevice = 1 << 2,
+ optIsZodiacDevice = 1 << 3,
+ optHasWideMode = 1 << 4,
+ optIsLandscapeMode = 1 << 5,
+ optHas16BitMode = 1 << 6,
+};
+
typedef struct {
DmOpenRef globals[3];
+ UInt32 options;
+
UInt16 HRrefNum;
UInt16 volRefNum;
UInt16 slkRefNum;
UInt32 slkVersion;
+ Boolean skinSet;
FileRef logFile;
-
Boolean vibrator;
Boolean autoReset;
Boolean screenLocked;
Boolean stdPalette;
- Coord screenWidth, screenHeight; // with silkarea
- Coord screenFullWidth, screenFullHeight; // without silkarea
+ Coord screenWidth, screenHeight; // silkarea shown
+ Coord screenFullWidth, screenFullHeight; // silkarea hidden
struct {
UInt8 on;
@@ -57,5 +72,6 @@
extern GlobalsDataPtr gVars;
+#define OPTIONS(x) (gVars->options & (x))
-#endif
\ No newline at end of file
+#endif
More information about the Scummvm-git-logs
mailing list