projects
/
vrfileman
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
thicker lines in file icons
[vrfileman]
/
src
/
fs.cc
diff --git
a/src/fs.cc
b/src/fs.cc
index
c7df966
..
aedeacd
100644
(file)
--- 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();
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;
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);
// then draw file icons
glDisable(GL_BLEND);
glUseProgram(0);
+ glLineWidth(2.0);
col = 0;
for(int i=0; i<nchildren; i++) {
int idx = (i + first) % nchildren;
col = 0;
for(int i=0; i<nchildren; i++) {
int idx = (i + first) % nchildren;
@@
-221,6
+222,7
@@
void draw_fs()
++row;
}
}
++row;
}
}
+ glLineWidth(1.0);
// then draw the file labels
glUseProgram(chrome_font_sdr);
// then draw the file labels
glUseProgram(chrome_font_sdr);