From c6baeaa6c016e2d4b7156019127454ef46e6e94a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 23 Mar 2025 15:43:04 +0100 Subject: Exclude unavailable adjustment methods when listing and trying MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/gamma-vidmode.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gamma-vidmode.c') diff --git a/src/gamma-vidmode.c b/src/gamma-vidmode.c index 505fba0..634fc37 100644 --- a/src/gamma-vidmode.c +++ b/src/gamma-vidmode.c @@ -20,6 +20,13 @@ #include "common.h" +static int +vidmode_is_available(void) +{ + return libgamma_is_method_available(LIBGAMMA_METHOD_X_VIDMODE); +} + + static int vidmode_create(struct gamma_state **state_out) { -- cgit v1.2.3-70-g09d2