(!1654) Xnest: replace XStoreColors() by xcb_store_colors()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
7c2b54d9fd
commit
c8f90647be
|
@ -387,25 +387,10 @@ void
|
||||||
xnestStoreColors(ColormapPtr pCmap, int nColors, xColorItem * pColors)
|
xnestStoreColors(ColormapPtr pCmap, int nColors, xColorItem * pColors)
|
||||||
{
|
{
|
||||||
if (pCmap->pVisual->class & DynamicClass)
|
if (pCmap->pVisual->class & DynamicClass)
|
||||||
#ifdef _XSERVER64
|
xcb_store_colors(xnestUpstreamInfo.conn,
|
||||||
{
|
xnestColormap(pCmap),
|
||||||
int i;
|
nColors,
|
||||||
XColor *pColors64 = xallocarray(nColors, sizeof(XColor));
|
(xcb_coloritem_t*) pColors);
|
||||||
|
|
||||||
for (i = 0; i < nColors; ++i) {
|
|
||||||
pColors64[i].pixel = pColors[i].pixel;
|
|
||||||
pColors64[i].red = pColors[i].red;
|
|
||||||
pColors64[i].green = pColors[i].green;
|
|
||||||
pColors64[i].blue = pColors[i].blue;
|
|
||||||
pColors64[i].flags = pColors[i].flags;
|
|
||||||
}
|
|
||||||
XStoreColors(xnestDisplay, xnestColormap(pCmap), pColors64, nColors);
|
|
||||||
free(pColors64);
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
XStoreColors(xnestDisplay, xnestColormap(pCmap),
|
|
||||||
(XColor *) pColors, nColors);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue