Fix for http://freedesktop.org/bugzilla/show_bug.cgi?id=858 - Fixing the
problem that clients cannot use the TrueColor visual without calling |XInstallColormap();|.
This commit is contained in:
parent
7f9e263658
commit
0addd0d499
|
@ -246,7 +246,6 @@ typedef DisplayListRec *DisplayListPtr;
|
|||
typedef struct
|
||||
{
|
||||
XrmDatabase resDB;
|
||||
ColormapPtr CMap;
|
||||
Bool (*DestroyWindow)(WindowPtr);
|
||||
} PsScreenPrivRec, *PsScreenPrivPtr;
|
||||
|
||||
|
|
|
@ -120,9 +120,6 @@ PsDestroyColormap(ColormapPtr pColor)
|
|||
void
|
||||
PsInstallColormap(ColormapPtr pColor)
|
||||
{
|
||||
PsScreenPrivPtr pPriv =
|
||||
(PsScreenPrivPtr)pColor->pScreen->devPrivates[PsScreenPrivateIndex].ptr;
|
||||
pPriv->CMap = pColor;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user