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   
Text File  |  1989-05-25  |  384b  |  20 lines

  1. #include <stdio.h>
  2. #include <gds.h>
  3.  
  4. int XHLine(x,y,boundary,leftx,rightx)
  5. int x,y,boundary,*leftx,*rightx;
  6. {
  7.     int ret;
  8.  
  9.     x+=ORGX;
  10.     y+=ORGY;
  11.     if (outside(x,y)) return(-1);
  12.     ret=hlnlmt(x,y,(boundary ? 0xffff : 0),STYLE,leftx,rightx);
  13.     if (!ret) {
  14.         *leftx+=ORGX;
  15.         *rightx+=ORGX;
  16.     }
  17.     return(ret);
  18. }
  19.  
  20.