aboutsummaryrefslogtreecommitdiff
path: root/foot-features.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-06-26 16:00:01 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-06-29 13:38:24 +0000
commit9db92bd942706d6d0ca0250d6011c49ec88f4051 (patch)
treeb1951281f2cfac73e180621c4f58306d122ebca8 /foot-features.h
parentchangelog: dpi-aware’s default value is now ‘no’ (diff)
feature: add a feature flag (for --version) for fractional scaling
Diffstat (limited to 'foot-features.h')
-rw-r--r--foot-features.h9
1 files changed, 9 insertions, 0 deletions
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
+}