summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLepkoQQ <lepko.san@gmail.com>2020-08-25 16:31:14 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-26 00:38:23 +0200
commitbb5014fad7449565482cd2c0a07eb0da4fc19bca (patch)
tree4808fb5bb6d85de0f1b64b81b58d78c801cdc965
parent7a46e0fa3514f7b85d76f10a30b7bf456df1922f (diff)
downloadserenity-bb5014fad7449565482cd2c0a07eb0da4fc19bca.zip
LibGfx: Use valid hsv values in painter debug
-rw-r--r--Libraries/LibGfx/Painter.cpp2
1 files changed, 1 insertions, 1 deletions
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
}