home *** CD-ROM | disk | FTP | other *** search
- /* DrawGads.h
- Written by Stefan Zeiger in 7/'91
- Status: Public Domain
- Released in 1991 by ! WIZARD WORKS !
- */
-
-
- void __regargs DrawPos(struct RastPort *rp,ULONG x,ULONG y,ULONG w,ULONG h)
- {
- SetAPen(rp,0);
- RectFill(rp,x+2,y+1,x+w-2,y+h-1);
-
- SetAPen(rp,2);
- Move(rp,x+w,y);
- Draw(rp,x,y);
- Draw(rp,x,y+h);
- Move(rp,x+1,y);
- Draw(rp,x+1,y+h-1);
-
- SetAPen(rp,1);
- Move(rp,x+1,y+h);
- Draw(rp,x+w,y+h);
- Draw(rp,x+w,y);
- Move(rp,x+w-1,y+h);
- Draw(rp,x+w-1,y+1);
- }
-
-
- void __regargs DrawNeg(struct RastPort *rp,ULONG x,ULONG y,ULONG w,ULONG h)
- {
- SetAPen(rp,0);
- RectFill(rp,x+2,y+1,x+w-2,y+h-1);
-
- SetAPen(rp,1);
- Move(rp,x+w,y);
- Draw(rp,x,y);
- Draw(rp,x,y+h);
- Move(rp,x+1,y);
- Draw(rp,x+1,y+h-1);
-
- SetAPen(rp,2);
- Move(rp,x+1,y+h);
- Draw(rp,x+w,y+h);
- Draw(rp,x+w,y);
- Move(rp,x+w-1,y+h);
- Draw(rp,x+w-1,y+1);
- }
-