summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-06-05 21:34:27 -0700
committerKeith Packard <keithp@keithp.com>2010-06-05 21:34:27 -0700
commit9c121ae45ae1d2ebd892c45e1631716ef5e7d649 (patch)
tree4ce80ab5dd5b08934c4df72ccce453da3f970527
parentdf534d05208436e9ca8c9b42acff3fbe240e3ec4 (diff)
Register Xnest colormap screen private key
This key is used to store the currently installed colormap and must be registered before we can use it. Reviewed-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--hw/xnest/Color.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/xnest/Color.c b/hw/xnest/Color.c
index 6399e3470..3b60cc95d 100644
--- a/hw/xnest/Color.c
+++ b/hw/xnest/Color.c
@@ -469,6 +469,9 @@ xnestCreateDefaultColormap(ScreenPtr pScreen)
unsigned short zero = 0, ones = 0xFFFF;
Pixel wp, bp;
+ if (!dixRegisterPrivateKey(&cmapScrPrivateKeyRec, PRIVATE_SCREEN, 0))
+ return FALSE;
+
for (pVisual = pScreen->visuals;
pVisual->vid != pScreen->rootVisual;
pVisual++);