home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / dv_x / dvix.zip / GENERAL.H < prev    next >
C/C++ Source or Header  |  1992-10-01  |  1KB  |  30 lines

  1. #define PAPER_WIDTH    ROUNDUP(17*pixels_per_inch,shrink_factor*2)
  2. #define PAPER_HEIGHT    ROUNDUP(11*pixels_per_inch,shrink_factor)
  3. #define X_PAGE_OFFSET    ROUNDUP(pixels_per_inch,shrink_factor)
  4. #define Y_PAGE_OFFSET    ROUNDUP(pixels_per_inch,shrink_factor)
  5.  
  6. #define pixel_round(x)      ((long) (conv * (double) (x) + 0.5))
  7. #define dvi_round(x)        ((long) ((double) (x) / conv + 0.5))
  8.  
  9. /* read one byte as a macro, more as a function */
  10. #define one(fp)     (getc(fp) & 0xff)
  11. #define sone(fp)    snum(fp, 1)
  12. #define two(fp)     num (fp, 2)
  13. #define stwo(fp)    snum(fp, 2)
  14. #define four(fp)    num (fp, 4)
  15. #define sfour(fp)   snum(fp, 4)
  16.  
  17. #define DBG_BITMAP    0x1
  18. #define DBG_DVI        0x2
  19. #define DBG_PK          0x4
  20. #define DBG_BATCH       0x8
  21. #define DBG_FONT    0x10
  22. #define DBG_ALL        (DBG_BITMAP|DBG_DVI|DBG_PK|DBG_FONT)
  23.  
  24. #ifndef _NFILE                /* should be in <stdio.h> */
  25. #define _NFILE 20            /* max number of files */
  26. #endif
  27. #define MAX_OPEN_FONTS (_NFILE - 6)
  28.  
  29. typedef unsigned char ubyte;
  30.