X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=vrfileman;a=blobdiff_plain;f=src%2Ffs.cc;h=8aec1b0409624eeab6996fbea59ba10e6cee83b8;hp=032fd66865b6cb15b3b6b92e9c2468c4a7d5ab94;hb=c4c8a37741c6b59dc512cfaacca6fd593dab96fe;hpb=47fdbdc2feec8d097d296fe019fbeb653c0b0efc diff --git a/src/fs.cc b/src/fs.cc index 032fd66..8aec1b0 100644 --- a/src/fs.cc +++ b/src/fs.cc @@ -122,7 +122,7 @@ void draw_fs() 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; @@ -137,6 +137,8 @@ void draw_fs() } // draw the directory link lines + glUseProgram(glow_link_sdr); + set_uniform_float(glow_link_sdr, "tsec", time_sec); glBlendFunc(GL_SRC_ALPHA, GL_ONE); for(int i=0; i