[mutter] monitor: Add function meta_monitor_get_max_bpc()



commit a907cef9050a4bc24dd8bf65f9a3121fa43f9a2d
Author: Daniel van Vugt <daniel van vugt canonical com>
Date:   Thu Jun 9 18:45:46 2022 +0800

    monitor: Add function meta_monitor_get_max_bpc()
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2412>

 src/backends/meta-monitor.c | 11 +++++++++++
 src/backends/meta-monitor.h |  3 +++
 2 files changed, 14 insertions(+)
---
diff --git a/src/backends/meta-monitor.c b/src/backends/meta-monitor.c
index b7abd9b4b6..3ad02ee3ad 100644
--- a/src/backends/meta-monitor.c
+++ b/src/backends/meta-monitor.c
@@ -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)
 {
diff --git a/src/backends/meta-monitor.h b/src/backends/meta-monitor.h
index d8a90097fe..4d61f1d4bc 100644
--- a/src/backends/meta-monitor.h
+++ b/src/backends/meta-monitor.h
@@ -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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]