home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 3
/
AACD03.BIN
/
AACD
/
Utilities
/
BackClock
/
sources
/
backclock
/
conf.h
< prev
next >
Wrap
C/C++ Source or Header
|
1999-09-02
|
1KB
|
42 lines
/* entete: conf.h version 1.3 15-08-99
*/
#define CF_NAMEENV "env:backclock.prefs"
#define CF_NAMEENVARC "envarc:backclock.prefs"
#define ERR_ENV "File error %ld on ENV:backclock.prefs"
#define ERR_ENVARC "File error %ld on ENVARC:backclock.prefs"
#define SIZE_2_1 98
#define SIZE_2_2 100
#define SIZE_2_31 106
#define SIZE_3_1 114
#define SIZE_3_2 138
#define SIZE_3_21 278
struct ConfFile {
UBYTE id[4] ; // BACK
UWORD posX,
posY,
lenX,
lenY ;
struct RGB cmap[NUM_COLORS] ;
UWORD fill ; // 2.1 fill or transparent
UWORD filln ; // 2.2 fill needles
UWORD drawsec ; // 2.31 raw the seconds ?
UWORD drawsha ; // shadows ?
UWORD drawmpo ; // middle point ?
WORD xoff, // 3.1 x & y & length for shadow offset
yoff ;
UWORD slen ;
UWORD leds ; // 3.1 leds or not
struct RGB lcmap[NUM_LED_COLORS] ; // 3.2 cmap for leds
UBYTE PubScr[MAXPUBSCREENNAME] ; // 3.21 pub scree name
} ;
// prepare the file to be saved
BOOL SaveConf(idWin * prj, UBYTE *) ;
BOOL LoadConf(idWin * prj) ;
// save prefs file to env (and to envarc)
void SaveEnv(idWin * prj, BOOL envarc) ;