home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / program / gempp15b / gemvo.cc < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-23  |  743 b   |  24 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. //  This file is Copyright 1992,1993 by Warwick W. Allison.
  4. //  This file is part of the gem++ library.
  5. //  You are free to copy and modify these sources, provided you acknowledge
  6. //  the origin by retaining this notice, and adhere to the conditions
  7. //  described in the file COPYING.LIB.
  8. //
  9. /////////////////////////////////////////////////////////////////////////////
  10.  
  11. #include "gemvo.h"
  12. #include "vdi.h"
  13.  
  14. GEMvdiobject::GEMvdiobject(GEMform& f, int RSCindex, VDI& v) :
  15.         GEMuserobject(f,RSCindex),
  16.         vdi(v)
  17. { }
  18.  
  19. virtual void GEMvdiobject::Draw(const PARMBLK* p)
  20. {
  21.     vdi.clip(p->pb_xc,p->pb_yc,p->pb_xc+p->pb_wc-1,p->pb_yc+p->pb_hc-1);
  22.     Draw(p->pb_x,p->pb_y);
  23. }
  24.