From e987124b516507f4eb71a29b53e288d3c590aa75 Mon Sep 17 00:00:00 2001 From: Niklas Haas <git@haasn.dev> Date: Wed, 21 Feb 2024 14:17:58 +0100 Subject: [PATCH] options: update for new clearing options --- src/options.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/options.c b/src/options.c index 3221f0f8..828cbafe 100644 --- a/src/options.c +++ b/src/options.c @@ -1122,13 +1122,21 @@ const struct pl_opt_t pl_option_list[] = { {"native", PL_LUT_NATIVE}, {"normalized", PL_LUT_NORMALIZED}, {"conversion", PL_LUT_CONVERSION})), + OPT_ENUM("background", "Background clearing mode", params.background, LIST( + {"color", PL_CLEAR_COLOR}, + {"tiles", PL_CLEAR_TILES}, + {"skip", PL_CLEAR_SKIP})), + OPT_ENUM("border", "Border clearing mode", params.border, LIST( + {"color", PL_CLEAR_COLOR}, + {"tiles", PL_CLEAR_TILES}, + {"skip", PL_CLEAR_SKIP})), OPT_FLOAT("background_r", "Background color R", params.background_color[0], .max = 1.0), OPT_FLOAT("background_g", "Background color G", params.background_color[1], .max = 1.0), OPT_FLOAT("background_b", "Background color B", params.background_color[2], .max = 1.0), OPT_FLOAT("background_transparency", "Background color transparency", params.background_transparency, .max = 1), - OPT_BOOL("skip_target_clearing", "Skip target clearing", params.skip_target_clearing), + OPT_BOOL("skip_target_clearing", "Skip target clearing", params.skip_target_clearing, .deprecated = true), OPT_FLOAT("corner_rounding", "Corner rounding", params.corner_rounding, .max = 1.0), - OPT_BOOL("blend_against_tiles", "Blend against tiles", params.blend_against_tiles), + OPT_BOOL("blend_against_tiles", "Blend against tiles", params.blend_against_tiles, .deprecated = true), OPT_FLOAT("tile_color_hi_r", "Bright tile R", params.tile_colors[0][0], .max = 1.0), OPT_FLOAT("tile_color_hi_g", "Bright tile G", params.tile_colors[0][1], .max = 1.0), OPT_FLOAT("tile_color_hi_b", "Bright tile B", params.tile_colors[0][2], .max = 1.0), -- GitLab