#include "defs.h" /* * Read the coordinates defining a rectangle. * * p1, p2 = pointers to 'e'-like entries -- the x/y values are filled in */ markarea(p1, p2) REG DL p1, p2; { must(cursor(p1)); wchar(p1, '+'); must(cursor(p2)); style(-1, 0, 3); box(p1, p2); style(-1, 0, 0); } /* * draw box of size defined by p1, p2, at p */ markdest(p1, p2, n2) REG DL p1, p2; DL n2; { INT dx, dy; DL1 n1; /* first corner */ DL1 try; INT k; dx = p1->x - p2->x; dy = p1->y - p2->y; do{ k=cursor(try); copypt(offset(try, dx, dy), n1); copypt(try, n2); flashbox(n1, n2); } while (k==SP); style(-1, 0, 3); box(n1, n2); style(-1, 0, 0); return(k); }