X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=vrfileman;a=blobdiff_plain;f=src%2Ffs.cc;h=aedeacda673fab17932bea9ccf018eeefa811ee6;hp=032fd66865b6cb15b3b6b92e9c2468c4a7d5ab94;hb=4e86dbc3eddad9da0b11ecb1b68d68db7b88c57e;hpb=47fdbdc2feec8d097d296fe019fbeb653c0b0efc diff --git a/src/fs.cc b/src/fs.cc index 032fd66..aedeacd 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