From 9db92bd942706d6d0ca0250d6011c49ec88f4051 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 26 Jun 2023 18:00:01 +0200 Subject: feature: add a feature flag (for --version) for fractional scaling --- foot-features.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'foot-features.h') diff --git a/foot-features.h b/foot-features.h index ad447767..77923aaf 100644 --- a/foot-features.h +++ b/foot-features.h @@ -37,3 +37,12 @@ static inline bool feature_graphemes(void) return false; #endif } + +static inline bool feature_fractional_scaling(void) +{ +#if defined(HAVE_FRACTIONAL_SCALE) + return true; +#else + return false; +#endif +} -- cgit v1.3