diff --git a/ChangeLog b/ChangeLog index b69e77af36b9fac0cb4d7845148b68cdc18ad913..6d93283f3e6ea503ed79ad0fcbfe837dfeb42cab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ svn - ? - Fixed incorrect apparent size on directory refresh - Browsing keys now work while file info window is displayed - Current directory is assumed when no directory is specified + - Size graph uses the apparent size if that is displayed 1.4 - 2008-09-10 - Removed the startup window diff --git a/src/browser.c b/src/browser.c index 1db9ef4bbe560ccc5c3bb7459e2dabd04218e7d5..be95cd54f22ee47d3eac19943301a1e7d82ef719 100644 --- a/src/browser.c +++ b/src/browser.c @@ -197,8 +197,8 @@ void drawBrowser(int change) { exlhid(n) if(n->flags & FF_BSEL) selected = i; - if(n->size > max) - max = n->size; + if((bflags & BF_AS ? n->asize : n->size) > max) + max = bflags & BF_AS ? n->asize : n->size; } if(selected+change < 0) @@ -280,7 +280,7 @@ void drawBrowser(int change) { break; case 1: mvprintw(i+2, 0, tmp, ct, size, - graph(max, n->size), + graph(max, bflags & BF_AS ? n->asize : n->size), dt, cropdir(n->name, wincols-24) ); break; @@ -292,7 +292,7 @@ void drawBrowser(int change) { break; case 3: mvprintw(i+2, 0, tmp, ct, size, - ((float) n->size / (float) n->parent->size) * 100.0f, graph(max, n->size), + ((float) n->size / (float) n->parent->size) * 100.0f, graph(max, bflags & BF_AS ? n->asize : n->size), dt, cropdir(n->name, wincols-30) ); }