diff options
author | Bert Münnich <ber.t@posteo.de> | 2014-11-27 22:23:14 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2014-11-27 22:23:14 +0100 |
commit | 728a2d931fc2fd987cf2618a849291d32d2cd6df (patch) | |
tree | 71007e46136891e54903d40509eeb17a1a1537a5 /thumbs.c | |
parent | 1439b845449a5b0905db729e463ac180fbc2761e (diff) | |
download | nsxiv-728a2d931fc2fd987cf2618a849291d32d2cd6df.tar.zst |
Limit thumbnail selection border width to 4px
Diffstat (limited to 'thumbs.c')
-rw-r--r-- | thumbs.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -600,6 +600,7 @@ bool tns_zoom(tns_t *tns, int d) tns->zl = MIN(tns->zl, ARRLEN(thumb_sizes)-1); tns->bw = ((thumb_sizes[tns->zl] - 1) >> 5) + 1; + tns->bw = MIN(tns->bw, 4); tns->dim = thumb_sizes[tns->zl] + 2 * tns->bw + 6; if (tns->zl != oldzl) { |