Lines Matching refs:pVisual

254 CMapColormapUseMax(VisualPtr pVisual, CMapScreenPtr pScreenPriv)  in CMapColormapUseMax()  argument
256 if (pVisual->nplanes > 16) in CMapColormapUseMax()
258 return ((1 << pVisual->nplanes) > pScreenPriv->maxColors); in CMapColormapUseMax()
272 if (CMapColormapUseMax(pmap->pVisual, pScreenPriv)) in CMapAllocateColormapPrivate()
273 numColors = pmap->pVisual->ColormapEntries; in CMapAllocateColormapPrivate()
275 numColors = 1 << pmap->pVisual->nplanes; in CMapAllocateColormapPrivate()
361 VisualPtr pVisual = pmap->pVisual; in CMapStoreColors() local
373 if ((pVisual->class == TrueColor) || in CMapStoreColors()
374 (pVisual->class == StaticColor) || (pVisual->class == StaticGray)) in CMapStoreColors()
377 if (pVisual->class == DirectColor) { in CMapStoreColors()
383 if (CMapColormapUseMax(pVisual, pScreenPriv)) { in CMapStoreColors()
389 index = (pdefs[ndef].pixel & pVisual->redMask) >> in CMapStoreColors()
390 pVisual->offsetRed; in CMapStoreColors()
399 index = (pdefs[ndef].pixel & pVisual->greenMask) >> in CMapStoreColors()
400 pVisual->offsetGreen; in CMapStoreColors()
409 index = (pdefs[ndef].pixel & pVisual->blueMask) >> in CMapStoreColors()
410 pVisual->offsetBlue; in CMapStoreColors()
456 (pmap->pVisual->class == TrueColor) && in CMapInstallColormap()
457 CMapColormapUseMax(pmap->pVisual, pScreenPriv)) in CMapInstallColormap()
543 indices, cmapPriv->colors, pmap->pVisual); in CMapReinstallMap()
563 VisualPtr pVisual = pmap->pVisual; in CMapRefreshColors() local
576 reds = pVisual->redMask >> pVisual->offsetRed; in CMapRefreshColors()
577 greens = pVisual->greenMask >> pVisual->offsetGreen; in CMapRefreshColors()
578 blues = pVisual->blueMask >> pVisual->offsetBlue; in CMapRefreshColors()
580 switch (pVisual->class) { in CMapRefreshColors()
590 if (CMapColormapUseMax(pVisual, pScreenPriv)) { in CMapRefreshColors()
600 colors[i].red = gamma[((i >> pVisual->offsetRed) & reds) * in CMapRefreshColors()
602 colors[i].green = gamma[((i >> pVisual->offsetGreen) & greens) * in CMapRefreshColors()
604 colors[i].blue = gamma[((i >> pVisual->offsetBlue) & blues) * in CMapRefreshColors()
632 if (CMapColormapUseMax(pVisual, pScreenPriv)) { in CMapRefreshColors()
651 colors[index].red = gamma[pmap->red[(index >> pVisual-> in CMapRefreshColors()
655 gamma[pmap->green[(index >> pVisual->offsetGreen) & greens].co. in CMapRefreshColors()
658 gamma[pmap->blue[(index >> pVisual->offsetBlue) & blues].co. in CMapRefreshColors()
665 (*pScrn->LoadPalette) (pScrn, defs, indices, colors, pmap->pVisual); in CMapRefreshColors()
696 VisualPtr pVisual = pmap->pVisual; in CMapSetOverscan() local
719 switch (pVisual->class) { in CMapSetOverscan()
951 (pMap->pVisual->class == TrueColor) && in CMapChangeGamma()
952 CMapColormapUseMax(pMap->pVisual, pScreenPriv)) { in CMapChangeGamma()
959 if (pLink->cmap->pVisual->class == PseudoColor) in CMapChangeGamma()
1040 (pMap->pVisual->class == TrueColor) && in xf86ChangeGammaRamp()
1041 CMapColormapUseMax(pMap->pVisual, pScreenPriv)) { in xf86ChangeGammaRamp()
1048 if (pLink->cmap->pVisual->class == PseudoColor) in xf86ChangeGammaRamp()