Fix xtest failures in Xvfb from XMatchVisualInfo test.
This commit is contained in:
parent
5335bc8a06
commit
c0bff215de
|
@ -882,16 +882,22 @@ vfbScreenInit(int index, ScreenPtr pScreen, int argc, char **argv)
|
||||||
8, PseudoColor, 0x07, 0x38, 0xc0);
|
8, PseudoColor, 0x07, 0x38, 0xc0);
|
||||||
break;
|
break;
|
||||||
case 15:
|
case 15:
|
||||||
miSetVisualTypesAndMasks (15, (1 << TrueColor), 8, TrueColor,
|
miSetVisualTypesAndMasks (15,
|
||||||
0x7c00, 0x03e0, 0x001f);
|
((1 << TrueColor) |
|
||||||
|
(1 << DirectColor)),
|
||||||
|
8, TrueColor, 0x7c00, 0x03e0, 0x001f);
|
||||||
break;
|
break;
|
||||||
case 16:
|
case 16:
|
||||||
miSetVisualTypesAndMasks (16, (1 << TrueColor), 8, TrueColor,
|
miSetVisualTypesAndMasks (16,
|
||||||
0xf800, 0x07e0, 0x001f);
|
((1 << TrueColor) |
|
||||||
|
(1 << DirectColor)),
|
||||||
|
8, TrueColor, 0xf800, 0x07e0, 0x001f);
|
||||||
break;
|
break;
|
||||||
case 24:
|
case 24:
|
||||||
miSetVisualTypesAndMasks (24, (1 << TrueColor), 8, TrueColor,
|
miSetVisualTypesAndMasks (24,
|
||||||
0xff0000, 0x00ff00, 0x0000ff);
|
((1 << TrueColor) |
|
||||||
|
(1 << DirectColor)),
|
||||||
|
8, TrueColor, 0xff0000, 0x00ff00, 0x0000ff);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue