summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/EdgeFlagPathRasterizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibGfx/EdgeFlagPathRasterizer.cpp')
-rw-r--r--Userland/Libraries/LibGfx/EdgeFlagPathRasterizer.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/Userland/Libraries/LibGfx/EdgeFlagPathRasterizer.cpp b/Userland/Libraries/LibGfx/EdgeFlagPathRasterizer.cpp
index 488e469f82..cb0fd5f2ce 100644
--- a/Userland/Libraries/LibGfx/EdgeFlagPathRasterizer.cpp
+++ b/Userland/Libraries/LibGfx/EdgeFlagPathRasterizer.cpp
@@ -30,15 +30,13 @@
namespace Gfx {
-static Vector<Detail::Edge> prepare_edges(ReadonlySpan<Path::SplitLineSegment> lines, unsigned samples_per_pixel, FloatPoint origin)
+static Vector<Detail::Edge> prepare_edges(ReadonlySpan<FloatLine> lines, unsigned samples_per_pixel, FloatPoint origin)
{
- // FIXME: split_lines() gives similar information, but the form it's in is not that useful (and is const anyway).
Vector<Detail::Edge> edges;
edges.ensure_capacity(lines.size());
-
for (auto& line : lines) {
- auto p0 = line.from - origin;
- auto p1 = line.to - origin;
+ auto p0 = line.a() - origin;
+ auto p1 = line.b() - origin;
p0.scale_by(1, samples_per_pixel);
p1.scale_by(1, samples_per_pixel);