From bb5014fad7449565482cd2c0a07eb0da4fc19bca Mon Sep 17 00:00:00 2001 From: LepkoQQ Date: Tue, 25 Aug 2020 16:31:14 +0200 Subject: LibGfx: Use valid hsv values in painter debug --- Libraries/LibGfx/Painter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Libraries/LibGfx') diff --git a/Libraries/LibGfx/Painter.cpp b/Libraries/LibGfx/Painter.cpp index 1377fc81ea..b483ab30d2 100644 --- a/Libraries/LibGfx/Painter.cpp +++ b/Libraries/LibGfx/Painter.cpp @@ -1569,7 +1569,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(segment.from, segment.to, Color::from_hsv(++i / segments.size() * 360.0, 1.0, 1.0), 1); #endif } -- cgit v1.2.3