feature: add a feature flag (for --version) for fractional scaling

This commit is contained in:
Daniel Eklöf 2023-06-26 18:00:01 +02:00
parent 27a92b1158
commit 9db92bd942
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 15 additions and 2 deletions

View file

@ -66,11 +66,13 @@ static const char *
version_and_features(void)
{
static char buf[256];
snprintf(buf, sizeof(buf), "version: %s %cpgo %cime %cgraphemes %cassertions",
snprintf(buf, sizeof(buf),
"version: %s %cpgo %cime %cgraphemes %cfractional-scaling %cassertions",
FOOT_VERSION,
feature_pgo() ? '+' : '-',
feature_ime() ? '+' : '-',
feature_graphemes() ? '+' : '-',
feature_fractional_scaling() ? '+' : ':',
feature_assertions() ? '+' : '-');
return buf;
}