home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 607.lha / WizardClock_v1.20 / source.lzh / DrawGads.h next >
Text File  |  1991-10-30  |  849b  |  48 lines

  1. /* DrawGads.h
  2.    Written by Stefan Zeiger in 7/'91
  3.    Status: Public Domain
  4.    Released in 1991 by ! WIZARD WORKS !
  5. */
  6.  
  7.  
  8. void __regargs DrawPos(struct RastPort *rp,ULONG x,ULONG y,ULONG w,ULONG h)
  9. {
  10.   SetAPen(rp,0);
  11.   RectFill(rp,x+2,y+1,x+w-2,y+h-1);
  12.  
  13.   SetAPen(rp,2);
  14.   Move(rp,x+w,y);
  15.   Draw(rp,x,y);
  16.   Draw(rp,x,y+h);
  17.   Move(rp,x+1,y);
  18.   Draw(rp,x+1,y+h-1);
  19.  
  20.   SetAPen(rp,1);
  21.   Move(rp,x+1,y+h);
  22.   Draw(rp,x+w,y+h);
  23.   Draw(rp,x+w,y);
  24.   Move(rp,x+w-1,y+h);
  25.   Draw(rp,x+w-1,y+1);
  26. }
  27.  
  28.  
  29. void __regargs DrawNeg(struct RastPort *rp,ULONG x,ULONG y,ULONG w,ULONG h)
  30. {
  31.   SetAPen(rp,0);
  32.   RectFill(rp,x+2,y+1,x+w-2,y+h-1);
  33.  
  34.   SetAPen(rp,1);
  35.   Move(rp,x+w,y);
  36.   Draw(rp,x,y);
  37.   Draw(rp,x,y+h);
  38.   Move(rp,x+1,y);
  39.   Draw(rp,x+1,y+h-1);
  40.  
  41.   SetAPen(rp,2);
  42.   Move(rp,x+1,y+h);
  43.   Draw(rp,x+w,y+h);
  44.   Draw(rp,x+w,y);
  45.   Move(rp,x+w-1,y+h);
  46.   Draw(rp,x+w-1,y+1);
  47. }
  48.