#include /* for rint() -- which isn't in Ulrix 2.2 */ extern double rint(); #define UNALLOCATED (DEVICE_COLOR_TABLE_SIZE) /* an impossible index */ #define UNDEFINED_GDCT_COLOR (-1.0) /* an impossible red color value */ /* The following specifies the structure of the color table generated by * xws_rgbmap. The 5, 5, 5 _MAX values produce an XA_RGB_DEFAULT_MAP-type * color map. For an XA_RGB_BEST_MAP-type color map, specify 7, 7, 3. */ #define RED_MAX 5 #define GREEN_MAX 5 #define BLUE_MAX 5 #define X_RGB_SCALE 65535 /* X maximum red, green, or blue color value */ #define CONTIGUOUS 1 /* for XAllocColorCell() */ #define NONCONTIGUOUS 0 /* for XAllocColorCell() */