diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2005-10-06 08:08:04 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2005-10-06 08:08:04 +0000 |
commit | 5f30a7b10286b4f55821acd4eb5580a8f5a3c56a (patch) | |
tree | 5bc6789d450e4e66a1303d4da89d77b3f18d3cf2 /render | |
parent | 9000c0321baf1e25e1796e6a333aad0e5a22cbe2 (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.c | 2 |
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; } |