diff options
author | Daniel Schadt <kingdread@gmx.de> | 2019-12-08 03:23:16 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2019-12-08 03:23:16 +0100 |
commit | 84dd675977b099b1ff79fe1589007cc8103c07ea (patch) | |
tree | c3f3fcd1a76666f80e5ca2972c9bf0eed98e03f1 /Cargo.lock | |
parent | 8a05058090b470624994c6691e5169a362f9431d (diff) | |
download | kondou-84dd675977b099b1ff79fe1589007cc8103c07ea.tar.gz kondou-84dd675977b099b1ff79fe1589007cc8103c07ea.tar.bz2 kondou-84dd675977b099b1ff79fe1589007cc8103c07ea.zip |
improve antialiasing of thick lines
As it turns out, the algorithm for drawing convex polygons is very bad
at handling aliasing, and the line height looked off as well. The new
algorithm fixes the issue by first drawing a horizontal filled
rectangle, then rotating the rectangle by the required angle (using
bicubic filtering) and finally overlaying the rectangle onto the target.
This improves both the looks of the line height and the aliasing
effects.
Diffstat (limited to 'Cargo.lock')
0 files changed, 0 insertions, 0 deletions