void GlSeqBrowser::draw_segments() const
{
glLineWidth(1);
+ glEnable(GL_BLEND);
+ glDepthMask(GL_FALSE);
// each vector contains path_segment_maps of all the connections
// between this track and the next
path_segment_map_vector::const_iterator psmv_i;
if (not s.reversed) {
if (selected_paths.size() == 0 or selected.size() > 0) {
- glColor3f(1.0, 0.0, 0.0);
+ glColor4f(1.0, 0.0, 0.0, 1.0);
} else {
- glColor3f(1.0, 0.8, 0.8);
+ glColor4f(1.0, 0.7, 0.7, 0.4);
}
} else {
if (selected_paths.size() == 0 or selected.size() > 0) {
- glColor3f(0.0, 0.0, 1.0);
+ glColor4f(0.0, 0.0, 1.0, 1.0);
} else {
- glColor3f(0.8, 0.8, 1.0);
+ glColor4f(0.7, 0.7, 1.0, 0.4);
}
/*
if (selected_paths.size() == 0 or selected.size() > 0) {
glPopName(); glPopName(); glPopName();
}
}
+ glDepthMask(GL_TRUE);
+ glDisable(GL_BLEND);
}