Warning: query_depths is deprecated since 3.22.
This function returns the available bit depths for the default screen.
Visual selection should be done using get_system_visual and get_rgba_visual
It’s equivalent to listing the visuals (list_visuals) and then looking at the depth field in each visual, removing duplicates.
The array returned by this function should not be freed.
depths |
return location for available depths |
count |
return location for number of available depths |