#include "X.h"
#define NEED_EVENTS
#include "Xproto.h"
#include "misc.h"
#include "window.h"
#include "windowstr.h"
#include "dix.h"
#include "scrnintstr.h"
#include "gcstruct.h"
#include "servermd.h"
#include "pixmap.h"
#include "pixmapst.h"
#include "ega.h"

int _near MaxClients = 9;

void
InitOutput(pScreenInfo, argc, argv)
ScreenInfo _near *pScreenInfo;
int argc;
char **argv;
{

	pScreenInfo->imageByteOrder = IMAGE_BYTE_ORDER;
	pScreenInfo->bitmapScanlineUnit = BITMAP_SCANLINE_UNIT;
	pScreenInfo->bitmapScanlinePad = BITMAP_SCANLINE_PAD;
	pScreenInfo->bitmapBitOrder = BITMAP_BIT_ORDER;

	pScreenInfo->numPixmapFormats = 1;
	pScreenInfo->formats[0].depth = 1;
	pScreenInfo->formats[0].bitsPerPixel = 1;
	pScreenInfo->formats[0].scanlinePad = BITMAP_SCANLINE_PAD;
	(void)AddScreen(egainit, argc, argv);
}
