From 8e0b4671381d3f20cd27d2ec48c60e64383ecaf7 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sun, 9 Jun 2019 01:07:29 +0100 Subject: [PATCH] Warn when using new blur methods on old backends Signed-off-by: Yuxuan Shui --- src/render.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/render.c b/src/render.c index c6acf58..b4fa733 100644 --- a/src/render.c +++ b/src/render.c @@ -1136,7 +1136,13 @@ bool init_render(session_t *ps) { } // Blur filter - if (ps->o.blur_method) { + if (ps->o.blur_method && ps->o.blur_method != BLUR_METHOD_KERNEL) { + log_warn("Old backends only support blur method \"kernel\". Your blur " + "setting will not be applied"); + ps->o.blur_method = BLUR_METHOD_NONE; + } + + if (ps->o.blur_method == BLUR_METHOD_KERNEL) { ps->blur_kerns_cache = ccalloc(ps->o.blur_kernel_count, struct x_convolution_kernel *);