Lines Matching defs:pdefs
591 xColorItem *pdefs;
597 pdefs = malloc(nent * sizeof (xColorItem));
598 if (!pdefs)
601 pdefs[i].pixel = i;
602 fbdevGetColors (pScreen, nent, pdefs);
605 pmap->red[i].co.local.red = pdefs[i].red;
606 pmap->red[i].co.local.green = pdefs[i].green;
607 pmap->red[i].co.local.blue = pdefs[i].blue;
609 free(pdefs);
756 * Retrieve actual colormap and return selected n entries in pdefs.
759 fbdevGetColors (ScreenPtr pScreen, int n, xColorItem *pdefs)
772 if (pdefs[k].pixel < min)
773 min = pdefs[k].pixel;
774 if (pdefs[k].pixel > max)
775 max = pdefs[k].pixel;
791 p = pdefs->pixel;
792 pdefs->red = priv->red[p];
793 pdefs->green = priv->green[p];
794 pdefs->blue = priv->blue[p];
795 pdefs++;
800 * Change colormap by updating n entries described in pdefs.
803 fbdevPutColors (ScreenPtr pScreen, int n, xColorItem *pdefs)
814 p = pdefs->pixel;
815 priv->red[p] = pdefs->red;
816 priv->green[p] = pdefs->green;
817 priv->blue[p] = pdefs->blue;
822 pdefs++;