[mutter] monitor: Add API to check color transform support
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] monitor: Add API to check color transform support
- Date: Thu, 1 Sep 2022 15:38:15 +0000 (UTC)
commit 7a242ff1a10d51769d59ba230d9e37d9a6f03988
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Mon Dec 6 11:42:36 2021 +0100
monitor: Add API to check color transform support
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2164>
src/backends/meta-monitor.c | 9 +++++++++
src/backends/meta-monitor.h | 2 ++
2 files changed, 11 insertions(+)
---
diff --git a/src/backends/meta-monitor.c b/src/backends/meta-monitor.c
index 0d3eb0cfff..b94e783baa 100644
--- a/src/backends/meta-monitor.c
+++ b/src/backends/meta-monitor.c
@@ -353,6 +353,15 @@ meta_monitor_supports_underscanning (MetaMonitor *monitor)
return output_info->supports_underscanning;
}
+gboolean
+meta_monitor_supports_color_transform (MetaMonitor *monitor)
+{
+ const MetaOutputInfo *output_info =
+ meta_monitor_get_main_output_info (monitor);
+
+ return output_info->supports_color_transform;
+}
+
gboolean
meta_monitor_is_underscanning (MetaMonitor *monitor)
{
diff --git a/src/backends/meta-monitor.h b/src/backends/meta-monitor.h
index 3e81c7a090..6973e348a7 100644
--- a/src/backends/meta-monitor.h
+++ b/src/backends/meta-monitor.h
@@ -116,6 +116,8 @@ gboolean meta_monitor_is_primary (MetaMonitor *monitor);
gboolean meta_monitor_supports_underscanning (MetaMonitor *monitor);
+gboolean meta_monitor_supports_color_transform (MetaMonitor *monitor);
+
gboolean meta_monitor_is_underscanning (MetaMonitor *monitor);
gboolean meta_monitor_get_max_bpc (MetaMonitor *monitor,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]