forked from AuroraMiddleware/gtk
Deprecate gdk_visual_get_bits_per_rgb
This function is pretty useless, since the Wayland backend returns 0 for this, and the Windows backend 42 (!).
This commit is contained in:
parent
c448061d49
commit
aa4c5459b7
@ -338,10 +338,13 @@ gdk_visual_get_colormap_size (GdkVisual *visual)
|
||||
* @visual: a #GdkVisual
|
||||
*
|
||||
* Returns the number of significant bits per red, green and blue value.
|
||||
* Not all GDK backend provide a meaningful value for this function.
|
||||
*
|
||||
* Returns: The number of significant bits per color value for @visual.
|
||||
*
|
||||
* Since: 2.22
|
||||
*
|
||||
* Deprecated: 3.22. Use gdk_visual_get_red_pixel_details() and its variants
|
||||
*/
|
||||
gint
|
||||
gdk_visual_get_bits_per_rgb (GdkVisual *visual)
|
||||
|
@ -119,7 +119,7 @@ GDK_AVAILABLE_IN_ALL
|
||||
GdkByteOrder gdk_visual_get_byte_order (GdkVisual *visual);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gint gdk_visual_get_colormap_size (GdkVisual *visual);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_3_22
|
||||
gint gdk_visual_get_bits_per_rgb (GdkVisual *visual);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gdk_visual_get_red_pixel_details (GdkVisual *visual,
|
||||
|
Loading…
Reference in New Issue
Block a user