/* Check for overflow or underflow on green value */ if (green > 0xff) green = 0xff;

if (green < 0x00) green = 0x00;

/* Generate the blue dither value */

blue += (dither_blue[y_dither_table][x_dither_table]<<1); /* Check for overflow or underflow on blue value */

if (blue > 0xff) blue = 0xff; if (blue < 0x00) blue = 0x00;

/* Generate the pixel value by "or"ing the values together */

pixel = ((red & 0xE0) ((green & 0xE0) >> 3) ((blue & 0xC0) >> 6)); return(pixel);

}

Internal Color Graphics, Internal Grayscale Graphics, CRX, GRX, and Dual- CRX Device-Dependent Information

Supported Visuals

Only one visual is supported.

For color displays:

Class PseudoColor Depth 8 -

supports DBE and MBX hardware double-buffering (CRX, Dual CRX) supports DBE and MBX software double-buffering (Internal Color Graphics)

For grayscale displays:

Class GrayScale Depth 8 -

supports DBE and MBX hardware double-buffering (GRX)

supports DBE and MBX software double-buffering (Internal GrayScale Graphics)

The "layer" and "transparent" default visual options are not supported.

Supported Screen Options

The following Screen Options are supported:

SwapBuffersOnVBlank

3BitCenterColor (Internal Color Graphics only)

EnableIncludeInferiorsFix

Page 54

Graphics Administration Guide for HP-UX 10.20