From 607b0d09ea003f87cfb3331e59e13495a483832a Mon Sep 17 00:00:00 2001 From: Aaron Plattner Date: Mon, 9 Jun 2008 09:52:04 -0700 Subject: [PATCH] CreateColormap returns Success on success, not TRUE. Fixes a problem where enabling color index overlays disables the RENDER extension. --- render/picture.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/render/picture.c b/render/picture.c index 35e2a28b3..2fbd09e8b 100644 --- a/render/picture.c +++ b/render/picture.c @@ -413,8 +413,9 @@ PictureInitIndexedFormat(ScreenPtr pScreen, PictFormatPtr format) (ColormapPtr) LookupIDByType(pScreen->defColormap, RT_COLORMAP); } else { VisualPtr pVisual = PictureFindVisual(pScreen, format->index.vid); - if (!CreateColormap(FakeClientID (0), pScreen, pVisual, - &format->index.pColormap, AllocNone, 0)) + if (CreateColormap(FakeClientID (0), pScreen, pVisual, + &format->index.pColormap, AllocNone, 0) + != Success) return FALSE; } if (!ps->InitIndexed(pScreen, format))