mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
LibGfx: Simplify segmentizing paths
Remove SplitLineSegment and replace it with a FloatLine, nobody was interested in its extra fields anymore. Also, remove the sorting of the split segments, this really should not have been done here anyway, and is not required by the rasterizer anymore. Keeping the segments in stroke order will also make it possible to generate stroked path geometry (in future).
This commit is contained in:
parent
910bff9e94
commit
6abc51d9f8
4 changed files with 21 additions and 49 deletions
|
@ -20,7 +20,7 @@ PathRasterizer::PathRasterizer(Gfx::IntSize size)
|
|||
void PathRasterizer::draw_path(Gfx::Path& path)
|
||||
{
|
||||
for (auto& line : path.split_lines())
|
||||
draw_line(line.from, line.to);
|
||||
draw_line(line.a(), line.b());
|
||||
}
|
||||
|
||||
RefPtr<Gfx::Bitmap> PathRasterizer::accumulate()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue