monitor: Add function meta_monitor_get_max_bpc()

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2412>
This commit is contained in:
Daniel van Vugt 2022-06-09 18:45:46 +08:00 committed by Marge Bot
parent 6ff0d600c3
commit a907cef905
2 changed files with 14 additions and 0 deletions

View File

@ -358,6 +358,17 @@ meta_monitor_is_underscanning (MetaMonitor *monitor)
return meta_output_is_underscanning (output);
}
gboolean
meta_monitor_get_max_bpc (MetaMonitor *monitor,
unsigned int *max_bpc)
{
MetaOutput *output;
output = meta_monitor_get_main_output (monitor);
return meta_output_get_max_bpc (output, max_bpc);
}
gboolean
meta_monitor_is_laptop_panel (MetaMonitor *monitor)
{

View File

@ -118,6 +118,9 @@ gboolean meta_monitor_supports_underscanning (MetaMonitor *monitor);
gboolean meta_monitor_is_underscanning (MetaMonitor *monitor);
gboolean meta_monitor_get_max_bpc (MetaMonitor *monitor,
unsigned int *max_bpc);
gboolean meta_monitor_is_laptop_panel (MetaMonitor *monitor);
gboolean meta_monitor_is_same_as (MetaMonitor *monitor,