/*
	グラフィック標準関数
*/

#include	<EGB.H>
#include	<Normlib.h>

extern char work[];

void circlel(int x, int y, int dx, int dy, int wm, int c )
{
	char pa[64];
	EGB_paintMode( work, wm );
	EGB_color( work, 0, c );
	EGB_color( work, 2, c );
	if (dx!=0 || dy!=0)
	{
		WORD(pa  ) = x;
		WORD(pa+2) = y;
		WORD(pa+4) = _abs(dx);
		WORD(pa+6) = _abs(dy);
		EGB_ellipse( work, pa );
	}	else	{
		WORD(pa  ) = 1;
		WORD(pa+2) = x;
		WORD(pa+4) = y;
		EGB_pset( work, pa );
	}
}
