#include <exec/types.h>
#include <exec/exec.h>
#include <intuition/intuition.h>
#include <graphics/gfxbase.h>
#include <graphics/gfx.h>
#include <graphics/gfxmacros.h>

/********************************************
 *  PrettyWindows v1.0   by Thom Robertson  *
 ********************************************/


prettywindow1(win,color)
struct Window *win;
int color;
{


/* Here we define our border structures. */

static SHORT vectors1[10];

struct Border line1 = {
	0,0,	/* XY origin relative to container TopLeft */
	1,0,JAM2,	/* front pen, back pen and drawmode */
	5,	/* number of XY vectors */
	vectors1,	/* pointer to XY vectors */
	NULL	/* next border in list */
};

static SHORT vectors2[10];

struct Border line2 = {
	0,0,	/* XY origin relative to container TopLeft */
	2,0,JAM2,	/* front pen, back pen and drawmode */
	5,	/* number of XY vectors */
	vectors2,	/* pointer to XY vectors */
	NULL	/* next border in list */
};

static SHORT vectors3[10];

struct Border line3 = {
	0,0,	/* XY origin relative to container TopLeft */
	3,0,JAM2,	/* front pen, back pen and drawmode */
	5,	/* number of XY vectors */
	vectors3,	/* pointer to XY vectors */
	NULL	/* next border in list */
};



vectors1[0] = 4;
vectors1[6] = 4;
vectors1[8] = 4;
vectors1[2] = win->Width - 4;
vectors1[4] = win->Width - 4;
vectors1[1] = 2;
vectors1[3] = 2;
vectors1[9] = 2;
vectors1[5] = win->Height - 2;
vectors1[7] = win->Height - 2;

vectors2[0] = 8;
vectors2[6] = 8;
vectors2[8] = 8;
vectors2[2] = win->Width - 8;
vectors2[4] = win->Width - 8;
vectors2[1] = 4;
vectors2[3] = 4;
vectors2[9] = 4;
vectors2[5] = win->Height - 4;
vectors2[7] = win->Height - 4;

vectors3[0] = 12;
vectors3[6] = 12;
vectors3[8] = 12;
vectors3[2] = win->Width - 12;
vectors3[4] = win->Width - 12;
vectors3[1] = 6;
vectors3[3] = 6;
vectors3[9] = 6;
vectors3[5] = win->Height - 6;
vectors3[7] = win->Height - 6;

SetRast(win->RPort,color);

if (color == 1)
   line1.FrontPen = 0;
if (color == 2)
   line2.FrontPen = 0;
if (color == 3)
   line3.FrontPen = 0;

DrawBorder(win->RPort,&line1,0,0);
DrawBorder(win->RPort,&line2,0,0);
DrawBorder(win->RPort,&line3,0,0);


}  /* end of routine */


