#include "show.h"

/**
 * Copyright (C) 2001-2006 Tino Reichardt
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License Version 2, as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

void show_box(int x1, int y1, int x2, int y2)
{
	register int i;

	show_gotoxy(x1,y1);
	show(AC_TL);show_hline(x2-x1,AC_HL);show(AC_TR);
	for (i=1; i!=y2-1; ++i) {
		show_gotoxy(x1,y1+i);show(AC_VL);
		show_gotoxy(x2,y1+i);show(AC_VL);
	}
	show_gotoxy(x1,y2);
	show(AC_BL);show_hline(x2-x1,AC_HL);show(AC_BR);

	return;
}

