X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=vrfileman;a=blobdiff_plain;f=src%2Ffs.cc;h=aedeacda673fab17932bea9ccf018eeefa811ee6;hp=c7df966e18a5dd6fc6d5f6ebe6c84565549f60e4;hb=4e86dbc3eddad9da0b11ecb1b68d68db7b88c57e;hpb=5e07bfd4d034dc3d974c8db008c6446e62838d39 diff --git a/src/fs.cc b/src/fs.cc index c7df966..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; @@ -195,6 +195,7 @@ void draw_fs() // then draw file icons glDisable(GL_BLEND); glUseProgram(0); + glLineWidth(2.0); col = 0; for(int i=0; i