problem that clients cannot use the TrueColor visual without calling
    |XInstallColormap();|.
This commit is contained in:
Roland Mainz 2004-07-18 05:21:20 +00:00
parent 7f9e263658
commit 0addd0d499
3 changed files with 7 additions and 5 deletions

View File

@ -246,7 +246,6 @@ typedef DisplayListRec *DisplayListPtr;
typedef struct
{
XrmDatabase resDB;
ColormapPtr CMap;
Bool (*DestroyWindow)(WindowPtr);
} PsScreenPrivRec, *PsScreenPrivPtr;

View File

@ -120,9 +120,6 @@ PsDestroyColormap(ColormapPtr pColor)
void
PsInstallColormap(ColormapPtr pColor)
{
PsScreenPrivPtr pPriv =
(PsScreenPrivPtr)pColor->pScreen->devPrivates[PsScreenPrivateIndex].ptr;
pPriv->CMap = pColor;
}
void

View File

@ -156,13 +156,19 @@ PsGetDrawablePrivateStuff(
if( pCon==NULL ) return FALSE;
else
{
Colormap c;
ColormapPtr cmap;
c = wColormap((WindowPtr)pDrawable);
cmap = (ColormapPtr)LookupIDByType(c, RT_COLORMAP);
cPriv = pCon->devPrivates[PsContextPrivateIndex].ptr;
sPriv = (PsScreenPrivPtr)
pDrawable->pScreen->devPrivates[PsScreenPrivateIndex].ptr;
*gc = cPriv->lastGC;
*valid = cPriv->validGC;
*psOut = cPriv->pPsOut;
*cMap = sPriv->CMap;
*cMap = cmap;
return TRUE;
}
default: