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