X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=vrfileman;a=blobdiff_plain;f=src%2Ffs.cc;fp=src%2Ffs.cc;h=d6b5eebf4692c0b41af37fb43d88c61e333a58aa;hp=a3e5b810533c48146733ce398c033a6e298c5131;hb=33c6d11947cc6299d7b6164b2e65563e38435c74;hpb=f737a4688a44fa05c9a5ea7919819437fae85ae1 diff --git a/src/fs.cc b/src/fs.cc index a3e5b81..d6b5eeb 100644 --- a/src/fs.cc +++ b/src/fs.cc @@ -37,7 +37,9 @@ bool init_fs(const char *path) return false; } - cur_node = get_fsnode(path); + if(!(cur_node = get_fsnode(path))) { + return false; + } cur_node->expand(); return true; } @@ -50,6 +52,7 @@ void cleanup_fs() delete node; } node_cache.clear(); + dtx_close_font(fat_font); delete iconrend; } @@ -72,12 +75,12 @@ static float icon_angle(int col, int ncols, float max_angle = 0.0f) void draw_fs() { - static const float row_spacing = 2.0; + static const float row_spacing = 0.25; static const float radius = 0.6; static const float umax = 0.42; static const float max_icon_angle = M_PI * 2.0 * umax; - int max_ncols = std::max(1, umax * 16); + int max_ncols = std::max(1, umax * 12); Mat4 base_xform; base_xform.rotate(time_sec, 0, 0);