projects
/
vrfileman
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed a couple of bugs
[vrfileman]
/
src
/
fs.cc
diff --git
a/src/fs.cc
b/src/fs.cc
index
a3e5b81
..
d6b5eeb
100644
(file)
--- a/
src/fs.cc
+++ b/
src/fs.cc
@@
-37,7
+37,9
@@
bool init_fs(const char *path)
return false;
}
return false;
}
- cur_node = get_fsnode(path);
+ if(!(cur_node = get_fsnode(path))) {
+ return false;
+ }
cur_node->expand();
return true;
}
cur_node->expand();
return true;
}
@@
-50,6
+52,7
@@
void cleanup_fs()
delete node;
}
node_cache.clear();
delete node;
}
node_cache.clear();
+ dtx_close_font(fat_font);
delete iconrend;
}
delete iconrend;
}
@@
-72,12
+75,12
@@
static float icon_angle(int col, int ncols, float max_angle = 0.0f)
void draw_fs()
{
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;
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<int>(1, umax * 16);
+ int max_ncols = std::max<int>(1, umax * 12);
Mat4 base_xform;
base_xform.rotate(time_sec, 0, 0);
Mat4 base_xform;
base_xform.rotate(time_sec, 0, 0);