home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / util / gblanker-38.8.lha / GBlanker / GSource / Blankers / main.h < prev    next >
C/C++ Source or Header  |  1994-11-05  |  724b  |  24 lines

  1. #ifndef MAIN_H
  2. #define MAIN_H
  3.  
  4. #include <clib/dos_protos.h>
  5.  
  6. extern struct Library *GarshnelibBase, *SysBase, *DOSBase, *GfxBase, *IntuitionBase;
  7.  
  8. LONG MessageServer( LONG );
  9. LONG HandleSignal( LONG );
  10. LONG ContinueBlanking( VOID );
  11. VOID Complain( STRPTR );
  12.  
  13. VOID Defaults( PrefObject * );
  14. LONG Blank( PrefObject * );
  15.  
  16. #define Inc( Value, Amt, Max ) (( Value + Amt > Max )?( Value = Max ):( Value = Value + Amt ))
  17. #define Dec( Value, Amt, Min ) (( Value - Amt < Min )?( Value = Min ):( Value = Value - Amt ))
  18. #define CompX( x ) ((( FontX * x ) + 3 ) / 6 )
  19. #define CompY( x ) ((( FontY * x ) + 4 ) / 9 )
  20. #define ComputeX( x ) ((( FontX * x ) + 3 ) / 6 )
  21. #define ComputeY( x ) ((( FontY * x ) + 4 ) / 9 )
  22.  
  23. #endif /* MAIN_H */
  24.