home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
APPS
/
DVI_MGR
/
dvimgr_s.lzh
/
dvimgr
/
setrule.h
< prev
next >
Wrap
Text File
|
1993-08-06
|
1KB
|
41 lines
/* -*-C-*- setrule.h */
/*-->setrule*/
/**********************************************************************/
/****************************** setrule *******************************/
/**********************************************************************/
/*--------------------------------------------------------------------*/
/* Modified for use with DVIDECW driver (09.02.90) */
/* Modified for use with MGR 04-Aug-1993 lcs */
/*--------------------------------------------------------------------*/
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
#if DECWINDOWS || MGR_OSK /* lcs */ /* top left corner at (h,v)*/
fillrect(hh - xscreen, vv - yscreen - rulepxl(height,conv),
rulepxl(width,conv) , rulepxl(height,conv));
#else
fillrect(hh + xscreen, YSIZE - vv + yscreen,
rulepxl(width,conv) , rulepxl(height,conv));
#endif
#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;
}
}