glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
int nchildren = (int)cur_node->children.size();
- int ncols = std::min(cur_node->nfiles, max_ncols);
+ int ncols = std::max(std::min(cur_node->nfiles, max_ncols), 1);
int first = start_child % ncols;
int col = 0, row = 0;
// then draw file icons
glDisable(GL_BLEND);
glUseProgram(0);
+ glLineWidth(2.0);
col = 0;
for(int i=0; i<nchildren; i++) {
int idx = (i + first) % nchildren;
++row;
}
}
+ glLineWidth(1.0);
// then draw the file labels
glUseProgram(chrome_font_sdr);