
#ifndef __DISPLAY_H__
#define __DISPLAY_H__

typedef struct DISPLAY {
  int sizex, sizey, shortsperline;
  void *displaycontext;
  unsigned short *data;
} DISPLAY;


extern DISPLAY display;


void display_raw(int rx, int ry, int rw, int rh, void *buf, int dithered8);
void display_copy(int rx, int ry, int rw, int rh, int sx, int sy);
void display_fillrectangle(int rx, int ry, int rw, int rh, unsigned short pix);
void display_flush(void);
void display_add_rectangle(int rx, int ry, int rw, int rh);

#endif
