From 728a2d931fc2fd987cf2618a849291d32d2cd6df Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Thu, 27 Nov 2014 22:23:14 +0100 Subject: Limit thumbnail selection border width to 4px --- thumbs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'thumbs.c') diff --git a/thumbs.c b/thumbs.c index ff368ea..e44f055 100644 --- 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) { -- cgit v1.2.3-70-g09d2