home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / apilot.lha / APilot / APilot_Opt / misc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-03  |  813 b   |  31 lines

  1. /***************************************************************************
  2.  *
  3.  * misc.h -- Defs for misc.c
  4.  *
  5.  *-------------------------------------------------------------------------
  6.  * Authors: Casper Gripenberg  (casper@alpha.hut.fi)
  7.  *          Kjetil Jacobsen  (kjetilja@stud.cs.uit.no)    
  8.  *
  9.  */
  10. #include "prefs.h"
  11. #include "map.h"
  12.  
  13. /*
  14.  * For myWritePixel precalculation tables
  15.  * Make sure this is bigger than the larger
  16.  * of screen bitmap width or height.       
  17.  */
  18. #if MAXResX > MAXResY 
  19. #define WP_TABLESIZE    MAXResX + MAP_BLOCKSIZE*2 + 5
  20. #else
  21. #define WP_TABLESIZE    MAXResY + MAP_BLOCKSIZE*2 + 5
  22. #endif
  23.  
  24. /*
  25.  * Some drawing primitives
  26.  */
  27. #ifdef PURE_OS
  28. #define VLINE(RP,X,Y,LEN)  { Move(RP,X,Y); Draw(RP,X,(Y+LEN-1)); }
  29. #define HLINE(RP,X,Y,LEN)  { Move(RP,X,Y); Draw(RP,(X+LEN-1),Y); }
  30. #endif
  31.