summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2005-10-06 08:08:04 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2005-10-06 08:08:04 +0000
commit5f30a7b10286b4f55821acd4eb5580a8f5a3c56a (patch)
tree5bc6789d450e4e66a1303d4da89d77b3f18d3cf2 /render
parent9000c0321baf1e25e1796e6a333aad0e5a22cbe2 (diff)
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
Diffstat (limited to 'render')
-rw-r--r--render/picture.c2
1 files changed, 1 insertions, 1 deletions
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;
}