mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-24 13:35:12 +00:00
LibGfx: Fix build with FILL_PATH_DEBUG enabled
This commit is contained in:
parent
b28ca9fad1
commit
9e0beebdf5
Notes:
sideshowbarker
2024-07-19 06:47:57 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/9e0beebdf53 Pull-request: https://github.com/SerenityOS/serenity/pull/2173
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue