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.
This commit is contained in:
AnotherTest 2020-05-08 21:22:38 +04:30 committed by Andreas Kling
commit 88738aefa3
Notes: sideshowbarker 2024-07-19 06:53:08 +09:00
3 changed files with 5 additions and 187 deletions

View file

@ -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;