/************************************************************************
 *
 * prefs.h -- Header file containing user modifications
 *
 *-----------------------------------------------------------------------
 * Authors: Casper Gripenberg  (casper@alpha.hut.fi)
 *          Kjetil Jacobsen  (kjetilja@stud.cs.uit.no)  
 *
 */

/* Maximum/minimum screensize supported so far, probably not cool playing with
 * same aspect ratio and bigger than 1280x1024.
 */
#define MAXResX 1280
#define MAXResY 1024
#define MINResX 320
#define MINResY	256

/*
 * This structure is used to store info about the surroundings
 */
typedef struct _UserPrefs {
  char  *mapname;              /* Pointer to filename of map */
  int	  dpy_width;             /* Display sizes              */
  int	  dpy_height;
  int   native_mode;           /* Default display is default */
  ULONG dpy_modeid;            /* Display mode               */
  ULONG dpy_autoscroll;        /* Are we autoscrolling?      */
  ULONG dpy_oscan;             /* Overscan type              */
} UserPrefs;	

extern UserPrefs prefs;

#ifdef DYN_SCR
#define SCR_WIDTH     prefs.dpy_width
#define SCR_HEIGHT    prefs.dpy_height
#else
#define SCR_WIDTH     641     /* These values should be set to the         */
#define SCR_HEIGHT    513     /* highest resolution needed, as the opened  */
                              /* screen will have this size.               */
                              /* Note: Must be smaller than MAXRes[XY]     */
#endif
