home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / Samples / C-ASM_VI.ARJ / PROGC.ZIP / PROGC084.C < prev    next >
Text File  |  1988-04-10  |  414b  |  13 lines

  1.  
  2. /************************************************************************/
  3. /* C implementation of a box draw algoritm using scanline               */
  4. /************************************************************************/
  5.  
  6. slow_solid_box(x, y, dx, dy, color)
  7.         {
  8.         int i;
  9.         cls();
  10.         for (i = 0; i < dy; i++)
  11.                 scanline(x, x + dx - 1, y + i, color);
  12.         }
  13.