home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / apilot.lha / APilot / APilot_Ser / prefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-03  |  1.7 KB  |  52 lines

  1. /************************************************************************
  2.  *
  3.  * prefs.h -- Header file containing user modifications
  4.  *
  5.  *-----------------------------------------------------------------------
  6.  * Authors: Casper Gripenberg  (casper@alpha.hut.fi)
  7.  *          Kjetil Jacobsen  (kjetilja@stud.cs.uit.no)  
  8.  *
  9.  */
  10.  
  11. /* 
  12.  * Maximum/minimum screensize supported so far, probably not cool playing with
  13.  * same aspect ratio and bigger than 1280x1024.
  14.  */
  15. #define MAXResX 1280
  16. #define MAXResY 1024
  17. #define MINResX 320
  18. #define MINResY 256
  19.  
  20. #define DEF_SERIALDEVICE    "serial.device"
  21. #define DEF_SERIALUNIT      0
  22. #define DEF_SERIALBPS       9600
  23.  
  24. /*
  25.  * This structure is used to store info about the surroundings
  26.  */
  27. typedef struct _UserPrefs {
  28.   char  *ser_dev;       /* Pointer to serial device name */
  29.   ULONG ser_unitnr;     /* Serial device unit number */
  30.   ULONG ser_bps;        /* Speed of serial port */
  31.   BOOL  noserial;       /* Set if the user just wants to play by himself */
  32.   char  *mapname;       /* Pointer to filename of map */
  33.   int   dpy_width;      /* Display sizes */
  34.   int   dpy_height;
  35.   BOOL  native_mode;    /* Default display is default */
  36.   ULONG dpy_modeid;     /* Display mode */
  37.   ULONG dpy_autoscroll; /* Are we autoscrolling? */
  38.   ULONG dpy_oscan;      /* Overscan type */
  39. } UserPrefs;
  40.  
  41. extern UserPrefs prefs;
  42.  
  43. #ifdef DYN_SCR
  44. #define SCR_WIDTH       prefs.dpy_width
  45. #define SCR_HEIGHT      prefs.dpy_height
  46. #else
  47. #define SCR_WIDTH       641     /* These values should be set to the         */
  48. #define SCR_HEIGHT      513     /* highest resolution needed, as the opened  */
  49.                                 /* screen will have this size.               */
  50.                                 /* Note: Must be smaller than MAXRes[XY]     */
  51. #endif
  52.