1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:37:46 +00:00

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.
This commit is contained in:
luiz 2022-09-13 19:54:54 -03:00 committed by Sam Atkins
parent 02b9461714
commit d77ced8943

View file

@ -34,7 +34,7 @@ class GenericConvolutionFilter : public Filter {
public:
class Parameters : public Filter::Parameters {
public:
Parameters(Gfx::Matrix<N, float> const& kernel, bool should_wrap = false)
Parameters(Gfx::Matrix<N, float> const& kernel, bool should_wrap = true)
: m_kernel(kernel)
, m_should_wrap(should_wrap)