home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast.iso
/
dv_x
/
dvix.zip
/
GENERAL.H
< prev
next >
Wrap
C/C++ Source or Header
|
1992-10-01
|
1KB
|
30 lines
#define PAPER_WIDTH ROUNDUP(17*pixels_per_inch,shrink_factor*2)
#define PAPER_HEIGHT ROUNDUP(11*pixels_per_inch,shrink_factor)
#define X_PAGE_OFFSET ROUNDUP(pixels_per_inch,shrink_factor)
#define Y_PAGE_OFFSET ROUNDUP(pixels_per_inch,shrink_factor)
#define pixel_round(x) ((long) (conv * (double) (x) + 0.5))
#define dvi_round(x) ((long) ((double) (x) / conv + 0.5))
/* read one byte as a macro, more as a function */
#define one(fp) (getc(fp) & 0xff)
#define sone(fp) snum(fp, 1)
#define two(fp) num (fp, 2)
#define stwo(fp) snum(fp, 2)
#define four(fp) num (fp, 4)
#define sfour(fp) snum(fp, 4)
#define DBG_BITMAP 0x1
#define DBG_DVI 0x2
#define DBG_PK 0x4
#define DBG_BATCH 0x8
#define DBG_FONT 0x10
#define DBG_ALL (DBG_BITMAP|DBG_DVI|DBG_PK|DBG_FONT)
#ifndef _NFILE /* should be in <stdio.h> */
#define _NFILE 20 /* max number of files */
#endif
#define MAX_OPEN_FONTS (_NFILE - 6)
typedef unsigned char ubyte;