Skip to content

Commit

Permalink
easier to spot smd vs padstack
Browse files Browse the repository at this point in the history
  • Loading branch information
vygr committed Oct 4, 2018
1 parent 9ec839a commit 0ca46a3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions c_pcb_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ int main(int argc, char *argv[])
}
}
//draw pads and vias
glUniform4f(vert_color_id, 1.0, 1.0, 1.0, 1.0);
glUniform4f(vert_color_id, 1.0, 1.0, 1.0, 0.5);
for (auto &t : ts)
{
for (auto &path : t.m_paths)
Expand All @@ -480,10 +480,10 @@ int main(int argc, char *argv[])
{
draw_filled_polygon_fan(point_2d{path[i].m_x, path[i].m_y},
*create_filled_circle(t.m_via_radius));
glUniform4f(vert_color_id, 0.0, 0.0, 0.0, 1.0);
glUniform4f(vert_color_id, 0.0, 0.0, 0.0, 0.5);
draw_filled_polygon_fan(point_2d{path[i].m_x, path[i].m_y},
*create_filled_circle(t.m_via_radius * 0.5));
glUniform4f(vert_color_id, 1.0, 1.0, 1.0, 1.0);
glUniform4f(vert_color_id, 1.0, 1.0, 1.0, 0.5);
}
}
}
Expand Down Expand Up @@ -512,10 +512,10 @@ int main(int argc, char *argv[])
draw_filled_polygon_fan(point_2d{0.0, 0.0}, points);
}
}
glUniform4f(vert_color_id, 0.0, 0.0, 0.0, 1.0);
glUniform4f(vert_color_id, 0.0, 0.0, 0.0, 0.5);
draw_filled_polygon_fan(point_2d{term.m_pos.m_x, term.m_pos.m_y},
*create_filled_circle(0.75));
glUniform4f(vert_color_id, 1.0, 1.0, 1.0, 1.0);
glUniform4f(vert_color_id, 1.0, 1.0, 1.0, 0.5);
}
}
}
Expand Down

0 comments on commit 0ca46a3

Please sign in to comment.