meson: require wayland-protocols >= 1.41

This commit is contained in:
Daniel Eklöf 2025-03-12 17:53:04 +01:00
parent a79fd6a7cf
commit d48a1c53f5
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
9 changed files with 10 additions and 139 deletions

View file

@ -1112,21 +1112,11 @@ parse_section_main(struct context *ctx)
if (!value_to_bool(ctx, &gamma_correct))
return false;
#if defined(HAVE_WP_COLOR_MANAGEMENT)
conf->gamma_correct =
gamma_correct
? GAMMA_CORRECT_ENABLED
: GAMMA_CORRECT_DISABLED;
return true;
#else
if (gamma_correct) {
LOG_CONTEXTUAL_WARN(
"ignoring; foot was built without color-management support");
}
conf->gamma_correct = GAMMA_CORRECT_DISABLED;
return true;
#endif
}
else {
@ -3339,11 +3329,7 @@ config_load(struct config *conf, const char *conf_path,
.underline_thickness = {.pt = 0., .px = -1},
.strikeout_thickness = {.pt = 0., .px = -1},
.dpi_aware = false,
#if defined(HAVE_WP_COLOR_MANAGEMENT)
.gamma_correct = GAMMA_CORRECT_AUTO,
#else
.gamma_correct = GAMMA_CORRECT_DISABLED,
#endif
.security = {
.osc52 = OSC52_ENABLED,
},