Krolyxon
Commit 5034792

Branches

Refs →

nsxiv5034792

Thumbnails only get scaled down, fixed issue #27

Author
Bert Münnich
Date
2011-11-05 13:11 +0100
Parent
71a7940
Commit
5034792948e181de5f1f19737cccc394116a82b4

+2 −1

2 files changed

  1. M Makefile +1 −1
  2. M thumbs.c +1 −0
M Makefile View
@@ -1,4 +1,4 @@
1−VERSION = git-20111101
1+VERSION = git-20111105
22
33 CC = gcc
44 CFLAGS = -ansi -Wall -pedantic -O2
M thumbs.c View
@@ -267,6 +267,7 @@ bool tns_load(tns_t *tns, int n, const fileinfo_t *file,
267267 zw = (float) THUMB_SIZE / (float) w;
268268 zh = (float) THUMB_SIZE / (float) h;
269269 z = MIN(zw, zh);
270+ z = MIN(z, 1.0);
270271 t->w = z * w;
271272 t->h = z * h;
272273