home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / misc_src / knowhow4 / shadow.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-01  |  535 b   |  18 lines

  1. #include "shadow.h"
  2.  
  3. void Shadow::show(rect where, int pixels)
  4.     {
  5.     if(pixels)
  6.     {
  7.     setfillstyle(CLOSE_DOT_FILL, pColorSet->colors.SHADOW_COLOR);
  8.         bar(where.origin.X, where.origin.Y,
  9.         where.origin.X + pixels - 1, where.corner.Y);
  10.     bar(where.origin.X, where.origin.Y,
  11.         where.corner.X, where.origin.Y + pixels - 1);
  12.     bar(where.corner.X - pixels + 1, where.origin.Y,
  13.         where.corner.X, where.corner.Y);
  14.     bar(where.origin.X, where.corner.Y - pixels + 1,
  15.         where.corner.X, where.corner.Y);
  16.     }
  17.     }
  18.