Bochs/bochs/gui/amigagui.h
Bryce Denney daf2a9fb55 - add RCS Id to header of every file. This makes it easier to know what's
going on when someone sends in a modified file.
2001-10-03 13:10:38 +00:00

178 lines
4.5 KiB
C

/////////////////////////////////////////////////////////////////////////
// $Id: amigagui.h,v 1.2 2001-10-03 13:10:37 bdenney Exp $
/////////////////////////////////////////////////////////////////////////
//
#include <exec/types.h>
#include <exec/exec.h>
#include <proto/exec.h>
#include <proto/dos.h>
#include <proto/intuition.h>
#include <proto/asl.h>
#include <proto/graphics.h>
#include <proto/cybergraphics.h>
#include <proto/diskfont.h>
#include <proto/gadtools.h>
#include <diskfont/diskfont.h>
#include <intuition/IntuitionBase.h>
#include <intuition/pointerclass.h>
#include <devices/input.h>
#include <devices/inputevent.h>
#include <graphics/gfxbase.h>
#include <graphics/videocontrol.h>
#include <cybergraphics/cybergraphics.h>
#include <libraries/gadtools.h>
#define FULL(x) (x*0x01010101)
void check_toolbar(void);
struct IntuitionBase *IntuitionBase;
struct GfxBase *GfxBase;
struct Library *KeymapBase;
struct Library *GadToolsBase;
struct Library *CyberGfxBase;
struct Library *AslBase;
struct Library *DiskfontBase;
struct Screen *screen = NULL, *pub_screen = NULL;
struct Window *window = NULL;
struct TextFont *vgafont;
struct IOStdReq *inputReqBlk = NULL;
struct MsgPort *inputPort = NULL;
struct Interrupt *inputHandler = NULL;
int input_error = -1;
LONG pmap[256];
ULONG cmap[256];
static UWORD *emptypointer;
struct TextAttr vgata = {
"vga.font",
16,
NULL
};
struct Image bx_header_image[BX_MAX_PIXMAPS];
struct Gadget *bx_header_gadget[BX_MAX_PIXMAPS], *bx_glistptr = NULL, *bx_gadget_handle;
static unsigned bx_image_entries = 0, bx_headerbar_entries = 0;
static unsigned bx_bordertop, bx_borderleft, bx_borderright, bx_borderbottom,
bx_headerbar_y, mouse_button_state = 0, bx_headernext_left,
bx_headernext_right, x_tilesize, y_tilesize, bx_mouseX, bx_mouseY;
static LONG apen = -1, black = -1, white = -1;
void *vi;
int w = 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