From d265a33a7a396ed78eab0f82810314d7657b4102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Wed, 5 Jan 2011 12:17:01 +0100 Subject: [PATCH] xf86cmap: Use old palette system for pseudocolour. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit RandR doesn't seem to deal with pseudocolour at all, so without this the pseudocolour palette never gets loaded to the hardware. Signed-off-by: Michel Dänzer --- hw/xfree86/common/xf86cmap.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/common/xf86cmap.c b/hw/xfree86/common/xf86cmap.c index 8b27b84..4ede4a9 100644 --- a/hw/xfree86/common/xf86cmap.c +++ b/hw/xfree86/common/xf86cmap.c @@ -132,7 +132,7 @@ static void CMapUnwrapScreen(ScreenPtr pScreen); Bool xf86ColormapAllocatePrivates(ScrnInfoPtr pScrn) { /* If we support a better colormap system, then pretend we succeeded. */ - if (xf86_crtc_supports_gamma(pScrn)) + if (pScrn->defaultVisual != PseudoColor && xf86_crtc_supports_gamma(pScrn)) return TRUE; if (!dixRegisterPrivateKey(&CMapScreenKeyRec, PRIVATE_SCREEN, 0)) return FALSE; @@ -158,7 +158,7 @@ Bool xf86HandleColormaps( int elements; /* If we support a better colormap system, then pretend we succeeded. */ - if (xf86_crtc_supports_gamma(pScrn)) + if (pScrn->defaultVisual != PseudoColor && xf86_crtc_supports_gamma(pScrn)) return TRUE; if(!maxColors || !sigRGBbits || !loadPalette) -- 1.7.2.3