From 7a242ff1a10d51769d59ba230d9e37d9a6f03988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Mon, 6 Dec 2021 11:42:36 +0100 Subject: [PATCH] monitor: Add API to check color transform support Part-of: --- 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 0d3eb0cff..b94e783ba 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 3e81c7a09..6973e348a 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,