Skip to content

drisw: Be more clever in computing depth for the XImage

Adam Jackson requested to merge ajax/mesa:kitty-fix into master

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)

Merge request reports