diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-09-05 17:05:03 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-09-12 15:26:13 -0700 |
commit | 6548a55ebdf43231a3c48debf54aa5aa2f1aa956 (patch) | |
tree | 0f60ea8e84f6067a9193a4c4a0f5194567f552fa /hw/xquartz/darwin.c | |
parent | bad7cd14c2021b14971b3f707f927803a053003e (diff) |
XQuartz: 256 color support
(cherry picked from commit 8dd6d5c825d457f26b41b79d02d57ed4a5ecf1f5)
Diffstat (limited to 'hw/xquartz/darwin.c')
-rw-r--r-- | hw/xquartz/darwin.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/xquartz/darwin.c b/hw/xquartz/darwin.c index b26110612..0a950359e 100644 --- a/hw/xquartz/darwin.c +++ b/hw/xquartz/darwin.c @@ -218,6 +218,13 @@ static Bool DarwinAddScreen(int index, ScreenPtr pScreen, int argc, char **argv) dfb->greenMask, dfb->blueMask)) { return FALSE; } + + if(dfb->depth > 8) + miSetVisualTypesAndMasks(8, PseudoColorMask, 8, PseudoColor, 0, 0, 0); + if(dfb->depth > 15) + miSetVisualTypesAndMasks(15, LARGE_VISUALS, 5, TrueColor, 0x7c00, 0x03e0, 0x001f); + if(dfb->depth > 24) + miSetVisualTypesAndMasks(24, LARGE_VISUALS, 8, TrueColor, 0x00ff0000, 0x0000ff00, 0x000000ff); miSetPixmapDepths(); |