monitor: Add a getter for the RGB range
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3535>
This commit is contained in:
parent
d945626318
commit
7b1e89b046
@ -381,6 +381,16 @@ meta_monitor_get_max_bpc (MetaMonitor *monitor,
|
|||||||
return meta_output_get_max_bpc (output, max_bpc);
|
return meta_output_get_max_bpc (output, max_bpc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MetaOutputRGBRange
|
||||||
|
meta_monitor_get_rgb_range (MetaMonitor *monitor)
|
||||||
|
{
|
||||||
|
MetaOutput *output;
|
||||||
|
|
||||||
|
output = meta_monitor_get_main_output (monitor);
|
||||||
|
|
||||||
|
return meta_output_peek_rgb_range (output);
|
||||||
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
meta_monitor_is_laptop_panel (MetaMonitor *monitor)
|
meta_monitor_is_laptop_panel (MetaMonitor *monitor)
|
||||||
{
|
{
|
||||||
|
@ -121,6 +121,8 @@ gboolean meta_monitor_is_underscanning (MetaMonitor *monitor);
|
|||||||
gboolean meta_monitor_get_max_bpc (MetaMonitor *monitor,
|
gboolean meta_monitor_get_max_bpc (MetaMonitor *monitor,
|
||||||
unsigned int *max_bpc);
|
unsigned int *max_bpc);
|
||||||
|
|
||||||
|
MetaOutputRGBRange meta_monitor_get_rgb_range (MetaMonitor *monitor);
|
||||||
|
|
||||||
gboolean meta_monitor_is_laptop_panel (MetaMonitor *monitor);
|
gboolean meta_monitor_is_laptop_panel (MetaMonitor *monitor);
|
||||||
|
|
||||||
gboolean meta_monitor_is_virtual (MetaMonitor *monitor);
|
gboolean meta_monitor_is_virtual (MetaMonitor *monitor);
|
||||||
|
Loading…
Reference in New Issue
Block a user