瀏覽代碼

LibGfx: Use valid hsv values in painter debug

LepkoQQ 4 年之前
父節點
當前提交
bb5014fad7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Libraries/LibGfx/Painter.cpp

+ 1 - 1
Libraries/LibGfx/Painter.cpp

@@ -1569,7 +1569,7 @@ void Painter::fill_path(Path& path, Color color, WindingRule winding_rule)
 #ifdef FILL_PATH_DEBUG
 #ifdef FILL_PATH_DEBUG
     size_t i { 0 };
     size_t i { 0 };
     for (auto& segment : segments)
     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
 #endif
 }
 }