sxiv

simple X image viewer
git clone git://git.suckless.org/sxiv
Log | Files | Refs | LICENSE

commit 728a2d931fc2fd987cf2618a849291d32d2cd6df
parent 1439b845449a5b0905db729e463ac180fbc2761e
Author: Bert M√ľnnich <ber.t@posteo.de>
Date:   Thu, 27 Nov 2014 22:23:14 +0100

Limit thumbnail selection border width to 4px

Diffstat:
Makefile | 2+-
thumbs.c | 1+
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -1,4 +1,4 @@ -VERSION := 1.3.1 +VERSION := git-20141127 PREFIX := /usr/local MANPREFIX := $(PREFIX)/share/man diff --git a/thumbs.c b/thumbs.c @@ -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) {