https://bugs.kde.org/show_bug.cgi?id=362445

Dmitry Kazakov <dimul...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED
      Latest Commit|                            |http://commits.kde.org/krit
                   |                            |a/23cbbf8b73cdd6c24a82ab70c
                   |                            |8269df2b69a4ef7

--- Comment #14 from Dmitry Kazakov <dimul...@gmail.com> ---
Git commit 23cbbf8b73cdd6c24a82ab70c8269df2b69a4ef7 by Dmitry Kazakov.
Committed on 30/05/2016 at 17:09.
Pushed by dkazakov into branch 'master'.

Fix "bended lines" stabilizer problem on Windows

The problem is that on Windows the tablet events are coming in bunches,
not uniformly. Therefore any timing-based smoothing system will not work
out of box.

This patch adds a special class KisStabilizedEventsSampler, that makes
the events uniform. It collects a set of events on a 50ms timeframe and
then distributes it uniformly.

The timeframe size should correlate with the maximum size of the delays
created by the events system. On Windows it is 50ms, on Linux 15-20ms.

The timeframe can be configured with "stabilizerSampleSize" config option.
Ref T2414
CC:kimages...@kde.org

M  +1    -0    libs/ui/CMakeLists.txt
M  +18   -1    libs/ui/kis_config.cc
M  +4    -0    libs/ui/kis_config.h
M  +6    -0    libs/ui/tests/CMakeLists.txt
A  +64   -0    libs/ui/tests/kis_stabilized_events_sampler_test.cpp    
[License: GPL (v2+)]
A  +31   -0    libs/ui/tests/kis_stabilized_events_sampler_test.h     [License:
GPL (v2+)]
A  +103  -0    libs/ui/tool/kis_stabilized_events_sampler.cpp     [License: GPL
(v2+)]
A  +90   -0    libs/ui/tool/kis_stabilized_events_sampler.h     [License: GPL
(v2+)]
M  +42   -28   libs/ui/tool/kis_tool_freehand_helper.cpp

http://commits.kde.org/krita/23cbbf8b73cdd6c24a82ab70c8269df2b69a4ef7

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to