From 5f30a7b10286b4f55821acd4eb5580a8f5a3c56a Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Thu, 6 Oct 2005 08:08:04 +0000 Subject: Bug #4689: Treat DirectColor as TrueColor in Render. It fixes some crashes with xcompmgr when using apps that use a DirectColor visual for their windows --- render/picture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render') diff --git a/render/picture.c b/render/picture.c index 43a70f405..a598f740b 100644 --- a/render/picture.c +++ b/render/picture.c @@ -543,9 +543,9 @@ PictureMatchVisual (ScreenPtr pScreen, int depth, VisualPtr pVisual) type = PictTypeIndexed; break; case TrueColor: + case DirectColor: type = PictTypeDirect; break; - case DirectColor: default: return 0; } -- cgit v1.2.3