Newer
Older
Microsoft / border / BORDER.C
@tundra tundra on 24 May 2012 770 bytes Initial revision
/*  BORDER.C - Draws user selected border
				Last Modified: 06/19/86
				Copyright (C) 1986,  T.A. Daneliuk
*/

#include	<system.h>


void	border(startv,starth,width,height,vattrib)

char	vattrib;
int		startv,starth,width,height;
{
int	x;

	v_rowcol(startv,starth);
	scr_aputs(mkstr(BORDERNW,1),vattrib);
	scr_aputs(mkstr(BORDERH,width-2),vattrib);
	scr_aputs(mkstr(BORDERNE,1),vattrib);
	v_rowcol(startv+height-1,starth);
	scr_aputs(mkstr(BORDERSW,1),vattrib);
	scr_aputs(mkstr(BORDERH,width-2),vattrib);
	scr_aputs(mkstr(BORDERSE,1),vattrib);

	for (x=startv+1;x<=(startv+height-2);x++)
		{
			v_rowcol(x,starth);
			scr_aputs(mkstr(BORDERV,1),vattrib);
			v_rowcol(x,starth+width-1);
			scr_aputs(mkstr(BORDERV,1),vattrib);
		}
		
}