Commit 98910caa authored by Davis King's avatar Davis King

Made the perspective widgets draw lines first.

parent 12f6520c
...@@ -5802,13 +5802,6 @@ namespace dlib ...@@ -5802,13 +5802,6 @@ namespace dlib
{ {
rectangle area = rect.intersect(c); rectangle area = rect.intersect(c);
fill_rect(c, area, 0); fill_rect(c, area, 0);
for (unsigned long i = 0; i < overlay_dots.size(); ++i)
{
point p = tform(overlay_dots[i].p) + rect.tl_corner();
if (area.contains(p))
assign_pixel(c[p.y()-c.top()][p.x()-c.left()], overlay_dots[i].color);
}
for (unsigned long i = 0; i < overlay_lines.size(); ++i) for (unsigned long i = 0; i < overlay_lines.size(); ++i)
{ {
draw_line(c, tform(overlay_lines[i].p1)+rect.tl_corner(), draw_line(c, tform(overlay_lines[i].p1)+rect.tl_corner(),
...@@ -5816,6 +5809,12 @@ namespace dlib ...@@ -5816,6 +5809,12 @@ namespace dlib
overlay_lines[i].color, overlay_lines[i].color,
area); area);
} }
for (unsigned long i = 0; i < overlay_dots.size(); ++i)
{
point p = tform(overlay_dots[i].p) + rect.tl_corner();
if (area.contains(p))
assign_pixel(c[p.y()-c.top()][p.x()-c.left()], overlay_dots[i].color);
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment