I'm trying to get a fullscreen 8 bit depth framebuffer but I can't find any visual to work with. I want 8 bit truecolor, where 3 bits are red, 3 bits are green and 2 bits are blue. I'm using XF86 to go fullscreen.
// pass
int found = XMatchVisualInfo(l_display, l_screen, 24, TrueColor, &visual);
// all of these fail
found = XMatchVisualInfo(l_display, l_screen, 8, StaticGray, &visual);
found = XMatchVisualInfo(l_display, l_screen, 8, GrayScale, &visual);
found = XMatchVisualInfo(l_display, l_screen, 8, StaticColor, &visual);
found = XMatchVisualInfo(l_display, l_screen, 8, PseudoColor, &visual);
found = XMatchVisualInfo(l_display, l_screen, 8, TrueColor, &visual);
found = XMatchVisualInfo(l_display, l_screen, 8, DirectColor, &visual);
Is this not possible or am I doing something wrong?