diff options
author | Roland Mainz <roland.mainz@nrubsig.org> | 2004-07-18 05:21:20 +0000 |
---|---|---|
committer | Roland Mainz <roland.mainz@nrubsig.org> | 2004-07-18 05:21:20 +0000 |
commit | 0addd0d499046fc8a6cdc18fc41d34cac2ba77ea (patch) | |
tree | 13d83bcf9ed10aa6bb8e4ffa047a72e4e385af58 /Xprint/ps/PsGC.c | |
parent | 7f9e263658b1c9c435db851a8afd904a2f584d13 (diff) |
Fix for http://freedesktop.org/bugzilla/show_bug.cgi?id=858 - Fixing the
problem that clients cannot use the TrueColor visual without calling
|XInstallColormap();|.
Diffstat (limited to 'Xprint/ps/PsGC.c')
-rw-r--r-- | Xprint/ps/PsGC.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Xprint/ps/PsGC.c b/Xprint/ps/PsGC.c index 28c1f718b..78c83930d 100644 --- a/Xprint/ps/PsGC.c +++ b/Xprint/ps/PsGC.c @@ -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: |