Lines Matching refs:ndef
358 CMapStoreColors(ColormapPtr pmap, int ndef, xColorItem * pdefs)
365 int num = ndef;
369 (*pScreen->StoreColors) (pmap, ndef, pdefs);
387 while (ndef--) {
388 if (pdefs[ndef].flags & DoRed) {
389 index = (pdefs[ndef].pixel & pVisual->redMask) >>
398 if (pdefs[ndef].flags & DoGreen) {
399 index = (pdefs[ndef].pixel & pVisual->greenMask) >>
408 if (pdefs[ndef].flags & DoBlue) {
409 index = (pdefs[ndef].pixel & pVisual->blueMask) >>
429 while (ndef--)
430 indices[ndef] = pdefs[ndef].pixel;