Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
rgbBits includes alpha which means it's wrong for normal visuals where depth is 24. So first, if the fbconfig maps to a visual, use that visual's depth. Otherwise subtract off alphaBits from rgbBits.
Fixes: #2291 (closed)