LibGfx: Fix build with FILL_PATH_DEBUG enabled

This commit is contained in:
Linus Groh 2020-05-09 21:29:10 +01:00 committed by Andreas Kling
parent b28ca9fad1
commit 9e0beebdf5
Notes: sideshowbarker 2024-07-19 06:47:57 +09:00

View file

@ -1298,7 +1298,7 @@ void Painter::fill_path(Path& path, Color color, WindingRule winding_rule)
#ifdef FILL_PATH_DEBUG
size_t i { 0 };
for (auto& segment : segments)
draw_line(segment.from, segment.to, Color::from_hsv(++i / segments.size() * 255, 255, 255), 1);
draw_line(Point(segment.from.x(), segment.from.y()), Point(segment.to.x(), segment.to.y()), Color::from_hsv(++i / segments.size() * 255, 255, 255), 1);
#endif
}