aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--thumbs.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 16ba138..6f503b4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION = git-20111101
+VERSION = git-20111105
CC = gcc
CFLAGS = -ansi -Wall -pedantic -O2
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;