Commit 2a0b544f authored by Keith Packard's avatar Keith Packard

Merge remote-tracking branch 'jeremyhu/master'

parents 0eb1559e ba4bb3bc
This diff is collapsed.
......@@ -230,13 +230,15 @@ DarwinScreenInit(ScreenPtr pScreen, int argc, char **argv)
}
// TODO: Make PseudoColor visuals not suck in TrueColor mode
// if(dfb->depth > 8)
// miSetVisualTypesAndMasks(8, PseudoColorMask, 8, PseudoColor, 0, 0, 0);
if (dfb->depth > 15)
miSetVisualTypesAndMasks(15, TrueColorMask, 5, TrueColor,
RM_ARGB(0, 5, 5, 5), GM_ARGB(0, 5, 5,
5),
BM_ARGB(0, 5, 5, 5));
// if(dfb->depth > 8)
// miSetVisualTypesAndMasks(8, PseudoColorMask, 8, PseudoColor, 0, 0, 0);
//
// TODO: Re-add support for 15bit
// if (dfb->depth > 15)
// miSetVisualTypesAndMasks(15, TrueColorMask, 5, TrueColor,
// RM_ARGB(0, 5, 5, 5), GM_ARGB(0, 5, 5,
// 5),
// BM_ARGB(0, 5, 5, 5));
if (dfb->depth > 24)
miSetVisualTypesAndMasks(24, TrueColorMask, 8, TrueColor,
RM_ARGB(0, 8, 8, 8), GM_ARGB(0, 8, 8,
......
......@@ -359,6 +359,10 @@ have_depth:
dfb->blueMask = 0;
break;
#if 0
// Removed because Mountain Lion removed support for
// 15bit backing stores. We can possibly re-add
// this once libXplugin is updated to work around it.
case 15:
dfb->visuals = TrueColorMask; //LARGE_VISUALS;
dfb->preferredCVC = TrueColor;
......@@ -369,6 +373,7 @@ have_depth:
dfb->greenMask = GM_ARGB(0, 5, 5, 5);
dfb->blueMask = BM_ARGB(0, 5, 5, 5);
break;
#endif
// case 24:
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment