home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_200
/
287_03
/
xhline.c
< prev
Wrap
Text File
|
1989-05-25
|
384b
|
20 lines
#include <stdio.h>
#include <gds.h>
int XHLine(x,y,boundary,leftx,rightx)
int x,y,boundary,*leftx,*rightx;
{
int ret;
x+=ORGX;
y+=ORGY;
if (outside(x,y)) return(-1);
ret=hlnlmt(x,y,(boundary ? 0xffff : 0),STYLE,leftx,rightx);
if (!ret) {
*leftx+=ORGX;
*rightx+=ORGX;
}
return(ret);
}