summaryrefslogtreecommitdiff
path: root/dviware/beebe/src/setrule.h
blob: ac54111f2aa94fbebd53528027cb300ca5a3422e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* -*-C-*- setrule.h */
/*-->setrule*/
/**********************************************************************/
/****************************** setrule *******************************/
/**********************************************************************/

void
setrule(height, width, update_h)
register UNSIGN32 height, width;
register BOOLEAN update_h;

{   /* draw a rule with bottom left corner at (h,v) */

    if ((height > 0) && (width > 0))		/* non-empty rule */

#if    BBNBITGRAPH
	fillrect(hh+xscreen, YSIZE-vv+yscreen,
	    rulepxl(width,conv)  ,  rulepxl(height,conv));
#else
	fillrect(hh, YSIZE-vv,
	    rulepxl(width,conv), rulepxl(height,conv));
#endif

    if (update_h)
    {
	h += (INT32)width;
	hh += rulepxl(width, conv);
	hh = fixpos(hh-lmargin,h,conv) + lmargin;
    }
}