diff options
author | N-R-K <79544946+N-R-K@users.noreply.github.com> | 2022-02-26 17:38:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-26 17:38:53 +0100 |
commit | bda70867ac50c35b3bb134cf408ce5ae3cf0c751 (patch) | |
tree | e8380d33cf0f00bee892e6c66cc79649ef0c82d6 /thumbs.c | |
parent | 9f12c79d1bfb64cbe006d26cc19af6c375cebbd1 (diff) | |
download | nsxiv-bda70867ac50c35b3bb134cf408ce5ae3cf0c751.tar.zst |
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>
Diffstat (limited to 'thumbs.c')
-rw-r--r-- | thumbs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |