From d77ced89433bcd5422563b74079420116ec95a1d Mon Sep 17 00:00:00 2001 From: luiz Date: Tue, 13 Sep 2022 19:54:54 -0300 Subject: [PATCH] LibGfx: Make should_wrap flag default as true on convolution filters Currently the default is false, but this is not the best strategy for most filters producing artifacts on the borders, and wrap-around option ends up being better, producing less artifacts. --- Userland/Libraries/LibGfx/Filters/GenericConvolutionFilter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGfx/Filters/GenericConvolutionFilter.h b/Userland/Libraries/LibGfx/Filters/GenericConvolutionFilter.h index e6c7384cd7..21d8a0b892 100644 --- a/Userland/Libraries/LibGfx/Filters/GenericConvolutionFilter.h +++ b/Userland/Libraries/LibGfx/Filters/GenericConvolutionFilter.h @@ -34,7 +34,7 @@ class GenericConvolutionFilter : public Filter { public: class Parameters : public Filter::Parameters { public: - Parameters(Gfx::Matrix const& kernel, bool should_wrap = false) + Parameters(Gfx::Matrix const& kernel, bool should_wrap = true) : m_kernel(kernel) , m_should_wrap(should_wrap)