Around 9 o'clock on Jan 31, "Dave Williss" wrote:
> I want use the fb code (rather than cfb32), but I have a problem.
> I need a 24-bit visual which is really 32-bit with the high byte
> unused. If I call fbScreenInit() with a 32-bit bpp, It gives me
> something like 11-11-10.
Cool. To get fb working in this case, you'll have to initialize the
pixmap formats (pScreenInfo->formats, pScreenInfo->numPixmapFormats)
and call miSetVisualTypesAndMasks before fbScreenInit --
that's the function that registers the pixel formats supported in the
hardware. For the typical TrueColor hardware at 32bpp, you'd do:
miSetVisualTypesAndMasks (24, 1<<TrueColor, 8, TrueColor,
0xff0000, 0xff00, 0xff);
Take a look at any of the drivers using fb to see what's necessary; you'll
want to make sure you call miSetPixmapDepths so that the Render extension
will have the necessary formats advertised to the client.
Keith Packard XFree86 Core Team Compaq Cambridge Research Lab
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert