add config.h option for top statusbar (#231)

Closes: https://github.com/nsxiv/nsxiv/issues/230
Co-authored-by: mamg22 <45301823+mamg22@users.noreply.github.com>
This commit is contained in:
N-R-K
2022-02-26 16:38:53 +00:00
committed by GitHub
parent 9f12c79d1b
commit bda70867ac
5 changed files with 11 additions and 5 deletions

View File

@ -428,7 +428,8 @@ void tns_render(tns_t *tns)
}
r = cnt % tns->cols ? 1 : 0;
tns->x = x = (win->w - MIN(cnt, tns->cols) * tns->dim) / 2 + tns->bw + 3;
tns->y = y = (win->h - (cnt / tns->cols + r) * tns->dim) / 2 + tns->bw + 3;
tns->y = y = (win->h - (cnt / tns->cols + r) * tns->dim) / 2 + tns->bw + 3 +
(win->bar.top ? win->bar.h : 0);
tns->loadnext = *tns->cnt;
tns->end = tns->first + cnt;