typedef struct intui_device_s {
  gx_device_common;
  struct Window *w;
  struct Screen *s;
  struct RastPort *rp;
  struct BitMap *supermap;
  int real_depth;
  gx_color_index black;
  gx_color_index white;
  struct DrawInfo *di;
} intui_device;

#define idev ((intui_device *)dev)
#define boolean char
#define FALSE 0
#ifndef XPPI
#define XPPI 80
#endif
#ifndef YPPI
#define YPPI 60
#endif
#define PRE_WIDTH  XPPI*9          /* size of dina4 */
#define PRE_HEIGHT YPPI*12
#define SCALE 0.68
#define WIN_WIDTH 400
#define WIN_HEIGHT 400
#define PRE_BUF_WIDTH 16
#define PRE_BUF_HEIGHT 16
#define LIB_REV 37
#define STACK_SIZE 4096
#define SCROLL_UNIT 8 /* in pixels */
