FatalError( "hpcInitialiseColormap: WSDISPLAY_GETCMAP failed\n" );
hpcFatalError(("hpcInitialiseColormap: WSDISPLAY_GETCMAP failed\n"));
hpcInitializeColormap(pmap)    register ColormapPtr	pmap;{    int i;	    VisualPtr pVisual;    ScreenPtr pScreen;    hpcFbPtr pFb;    pVisual = pmap->pVisual;    pScreen = pmap->pScreen;    pFb = hpcGetScreenFb(pScreen);    switch (pVisual->class) {    case StaticGray:    case GrayScale:	return FALSE;	break;    case StaticColor: {	    struct wsdisplay_cmap cmap;	    u_char	  rmap[256], gmap[256], bmap[256];	    cmap.index = 0;	    cmap.count = 256;	    cmap.red = rmap;	    cmap.green = gmap;	    cmap.blue = bmap;	    if (ioctl(pFb->fd, WSDISPLAYIO_GETCMAP, &cmap) < 0) {		FatalError( "hpcInitialiseColormap: WSDISPLAY_GETCMAP failed\n" );	    }	    for (i = 0; i < 256; i++) {		pmap->red[i].co.local.red = (long)rmap[i] << 8;		pmap->red[i].co.local.green = (long)gmap[i] << 8;		pmap->red[i].co.local.blue = (long)bmap[i] << 8;	    }	}	break;    case PseudoColor:    case TrueColor:    case DirectColor:    default:	return FALSE;	break;    }}