From 5034792948e181de5f1f19737cccc394116a82b4 Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Sat, 5 Nov 2011 13:11:50 +0100 Subject: Thumbnails only get scaled down, fixed issue #27 --- thumbs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'thumbs.c') diff --git a/thumbs.c b/thumbs.c index 69b2645..2540d25 100644 --- a/thumbs.c +++ b/thumbs.c @@ -267,6 +267,7 @@ bool tns_load(tns_t *tns, int n, const fileinfo_t *file, zw = (float) THUMB_SIZE / (float) w; zh = (float) THUMB_SIZE / (float) h; z = MIN(zw, zh); + z = MIN(z, 1.0); t->w = z * w; t->h = z * h; -- cgit v1.2.3-54-g00ecf