monitor: Add a getter for the RGB range

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3535>
This commit is contained in:
Sebastian Wick 2024-01-19 19:24:52 +01:00 committed by Marge Bot
parent d945626318
commit 7b1e89b046
2 changed files with 12 additions and 0 deletions

View File

@ -381,6 +381,16 @@ meta_monitor_get_max_bpc (MetaMonitor *monitor,
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
meta_monitor_is_laptop_panel (MetaMonitor *monitor)
{

View File

@ -121,6 +121,8 @@ gboolean meta_monitor_is_underscanning (MetaMonitor *monitor);
gboolean meta_monitor_get_max_bpc (MetaMonitor *monitor,
unsigned int *max_bpc);
MetaOutputRGBRange meta_monitor_get_rgb_range (MetaMonitor *monitor);
gboolean meta_monitor_is_laptop_panel (MetaMonitor *monitor);
gboolean meta_monitor_is_virtual (MetaMonitor *monitor);