/*
	scr.h - include file for screen related functions defined in scr.c
*/

/*
	Color palette table.  Borland uses RGB values for function
	setrgbpalette(index,r,g,b).  The RGB values are 6 bit values,
	with the lowest 2 bits zero.

	MicroSoft uses a LONG value.  These values are defined in <graph.h>
	so all we have to do is copy them.
*/

#ifdef __BORLANDC__

#include <graphics.h>

#define	RGB_BLACK	0x00,0x00,0x00
#define RGB_BLUE	0x00,0x00,0xa8
#define RGB_GREEN	0x00,0xa8,0x00
#define RGB_CYAN	0x00,0xa8,0xa8
#define RGB_RED		0xa8,0x00,0x00
#define RGB_MAGENTA	0xa8,0x00,0xa8
#define RGB_BROWN    	0xa8,0x54,0x00
#define RGB_WHITE	0xa8,0xa8,0xa8
#define RGB_GRAY	0x54,0x54,0x54
#define RGB_LIGHTBLUE	0x54,0x54,0xfc
#define RGB_LIGHTGREEN	0x54,0xfc,0x54
#define RGB_LIGHTRED	0xfc,0x54,0x54
#define RGB_LIGHTMAGENTA 0xfc,0x54,0xfc
#define RGB_YELLOW	0xfc,0xfc,0x54
#define RGB_BRIGHTWHITE	0xfc,0xfc,0xfc

#endif

#ifndef __BORLANDC__

#include <graph.h>

#define	RGB_BLACK	_BLACK
#define RGB_BLUE	_BLUE
#define RGB_GREEN	_GREEN
#define RGB_CYAN	_CYAN
#define RGB_RED		_RED
#define RGB_MAGENTA	_MAGENTA
#define RGB_BROWN	_BROWN
#define RGB_WHITE	_WHITE
#define RGB_GRAY	_GRAY
#define RGB_LIGHTBLUE	_LIGHTBLUE
#define RGB_LIGHTGREEN	_LIGHTGREEN
#define RGB_LIGHTCYAN	_LIGHTCYAN
#define RGB_LIGHTRED	_LIGHTRED
#define RGB_LIGHTMAGENTA _LIGHTMAGENTA
#define RGB_YELLOW	_YELLOW
#define RGB_BRIGHTWHITE	_BRIGHTWHITE

#endif
