diff options
author | Linus Groh <mail@linusgroh.de> | 2020-05-09 21:29:10 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-09 23:41:30 +0200 |
commit | 9e0beebdf531124d103a4bec04b0a7c430eaa9e4 (patch) | |
tree | 867a16591f204523a85739f20b0c143c2ec5ca21 /Libraries/LibGfx | |
parent | b28ca9fad11dfe0759c6ebd2517817a22fbeedc6 (diff) | |
download | serenity-9e0beebdf531124d103a4bec04b0a7c430eaa9e4.zip |
LibGfx: Fix build with FILL_PATH_DEBUG enabled
Diffstat (limited to 'Libraries/LibGfx')
-rw-r--r-- | Libraries/LibGfx/Painter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGfx/Painter.cpp b/Libraries/LibGfx/Painter.cpp index 549070b107..f312ab2612 100644 --- a/Libraries/LibGfx/Painter.cpp +++ b/Libraries/LibGfx/Painter.cpp @@ -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 } |