diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-05-08 21:22:38 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-08 19:39:38 +0200 |
commit | 88738aefa36d63dba8b4bae214b120a5b0fe8b76 (patch) | |
tree | 19a88e1e644a56fb454dced8ef137411afce60aa /Libraries/LibGfx/Painter.cpp | |
parent | 0f0d73d1b50198a048266b034c420d1105fa9d9b (diff) | |
download | serenity-88738aefa36d63dba8b4bae214b120a5b0fe8b76.zip |
LibGfx: Revert #2154 and properly handle simple polygons
The existing scanline method works just fine, and only needs the points
to be available as floats.
This commit reverts the complex polygon mitigation, and instead fixes
the rasterization process to avoid generating complex polygons because
of precision issues.
Diffstat (limited to 'Libraries/LibGfx/Painter.cpp')
-rw-r--r-- | Libraries/LibGfx/Painter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGfx/Painter.cpp b/Libraries/LibGfx/Painter.cpp index 61513da5ad..549070b107 100644 --- a/Libraries/LibGfx/Painter.cpp +++ b/Libraries/LibGfx/Painter.cpp @@ -1154,7 +1154,7 @@ void Painter::stroke_path(const Path& path, Color color, int thickness) void Painter::fill_path(Path& path, Color color, WindingRule winding_rule) { - const auto& segments = path.split_lines(Path::Simple); + const auto& segments = path.split_lines(); if (segments.size() == 0) return; |