home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / apilot.lha / APilot / APilot_Opt / prefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-03  |  1.5 KB  |  43 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. /* Maximum/minimum screensize supported so far, probably not cool playing with
  12.  * same aspect ratio and bigger than 1280x1024.
  13.  */
  14. #define MAXResX 1280
  15. #define MAXResY 1024
  16. #define MINResX 320
  17. #define MINResY    256
  18.  
  19. /*
  20.  * This structure is used to store info about the surroundings
  21.  */
  22. typedef struct _UserPrefs {
  23.   char  *mapname;              /* Pointer to filename of map */
  24.   int      dpy_width;             /* Display sizes              */
  25.   int      dpy_height;
  26.   int   native_mode;           /* Default display is default */
  27.   ULONG dpy_modeid;            /* Display mode               */
  28.   ULONG dpy_autoscroll;        /* Are we autoscrolling?      */
  29.   ULONG dpy_oscan;             /* Overscan type              */
  30. } UserPrefs;    
  31.  
  32. extern UserPrefs prefs;
  33.  
  34. #ifdef DYN_SCR
  35. #define SCR_WIDTH     prefs.dpy_width
  36. #define SCR_HEIGHT    prefs.dpy_height
  37. #else
  38. #define SCR_WIDTH     641     /* These values should be set to the         */
  39. #define SCR_HEIGHT    513     /* highest resolution needed, as the opened  */
  40.                               /* screen will have this size.               */
  41.                               /* Note: Must be smaller than MAXRes[XY]     */
  42. #endif
  43.