Pixel GetHilite(Pixel background) { XColor *colorp; colorp = GetHiliteColor(background); XAllocColor (Pdpy, Pcmap, colorp); return colorp->pixel; }
Pixel GetHilite(Pixel background) { XColor *colorp; colorp = GetHiliteColor(background); PictureAllocColor(Pdpy, Pcmap, colorp, True); if (colorp->pixel == background) { colorp->pixel = PictureGetNextColor(colorp->pixel, -1); } return colorp->pixel; }