From e43fa490554d60311d1b01a0b034ed6e35a1f6b1 Mon Sep 17 00:00:00 2001 From: Chris Apers Date: Tue, 23 Sep 2003 16:04:10 +0000 Subject: [PATCH] Options flag svn-id: r10378 --- backends/PalmOS/Src/globals.h | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/backends/PalmOS/Src/globals.h b/backends/PalmOS/Src/globals.h index 9a085345dd7..bd3b137112a 100644 --- a/backends/PalmOS/Src/globals.h +++ b/backends/PalmOS/Src/globals.h @@ -23,23 +23,38 @@ #ifndef GLOBALS_H #define GLOBALS_H +#include + +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 @@ typedef struct { extern GlobalsDataPtr gVars; +#define OPTIONS(x) (gVars->options & (x)) -#endif \ No newline at end of file +#endif