home *** CD-ROM | disk | FTP | other *** search
/ The Best of Mecomp Multimedia 2 / MECOMP-CD-II.iso / amiga / programmieren / c / amivogl_mdev / drivers / ibmpc / vega_dra.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-18  |  318 b   |  20 lines

  1. #include "vogl.h"
  2. /*
  3.  * vega_draw
  4.  *
  5.  * For V/EGA
  6.  * Draws a line from the current screen spot to x, y
  7.  */
  8.  
  9. extern    unsigned    _cur_color;
  10.  
  11. vega_draw(x, y)
  12.     register int    x, y;
  13. {
  14.     egaline(vdevice.cpVx, vdevice.sizeSy - vdevice.cpVy, x, vdevice.sizeSy - y, _cur_color);
  15.     vdevice.cpVx = x;
  16.     vdevice.cpVy = y;
  17.  
  18.     return(0);
  19. }
  20.