/* Draw shadows along the right and bottom edge to give a more 3D look to the boxes  */
void draw_shadow(WINDOW *win, int y, int x, int height, int width)
/* Draw shadows along the right and bottom edge to give a more 3D look to the boxes  */
void draw_shadow(WINDOW *win, int y, int x, int height, int width)
{
	int i;
	if (has_colors()) {
		wattrset(win, dlg.shadow.atr);
		wmove(win, y + height, x + 2);
		for (i = 0; i < width; i++)
			waddch(win, winch(win) & A_CHARTEXT);
		for (i = y + 1; i < y + height + 1; i++) {
			wmove(win, i, x + width);
			waddch(win, winch(win) & A_CHARTEXT);
			waddch(win, winch(win) & A_CHARTEXT);
		}
		wnoutrefresh(win);
	}
}