mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +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:
parent
02b9461714
commit
d77ced8943
Notes:
sideshowbarker
2024-07-17 06:19:58 +09:00
Author: https://github.com/luizgfranca 🔰 Commit: https://github.com/SerenityOS/serenity/commit/d77ced8943 Pull-request: https://github.com/SerenityOS/serenity/pull/15351
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue