nsxiv5034792
Thumbnails only get scaled down, fixed issue #27
+2 −1
2 files changed
| @@ -1,4 +1,4 @@ | |||
| 1 | − | VERSION = git-20111101 | |
| 1 | + | VERSION = git-20111105 | |
| 2 | 2 | ||
| 3 | 3 | CC = gcc | |
| 4 | 4 | CFLAGS = -ansi -Wall -pedantic -O2 | |
| @@ -267,6 +267,7 @@ bool tns_load(tns_t *tns, int n, const fileinfo_t *file, | |||
| 267 | 267 | zw = (float) THUMB_SIZE / (float) w; | |
| 268 | 268 | zh = (float) THUMB_SIZE / (float) h; | |
| 269 | 269 | z = MIN(zw, zh); | |
| 270 | + | z = MIN(z, 1.0); | |
| 270 | 271 | t->w = z * w; | |
| 271 | 272 | t->h = z * h; | |
| 272 | 273 | ||