#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 "vga.h"

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

	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 = 4;
	pScreenInfo->formats[0].bitsPerPixel = 4;
	pScreenInfo->formats[0].scanlinePad = BITMAP_SCANLINE_PAD;
#ifdef notdef
	pScreenInfo->formats[1].depth = 1;
	pScreenInfo->formats[1].bitsPerPixel = 1;
	pScreenInfo->formats[1].scanlinePad = BITMAP_SCANLINE_PAD;
#endif
	if (vgaprobe(index, pScreenInfo, argc, argv))
		index++;
	pScreenInfo->numScreens = index;
}
