Kaynağa Gözat

Thumbnails only get scaled down, fixed issue #27

master
Bert Münnich 14 yıl önce
ebeveyn
işleme
5034792948
2 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. +1
    -1
      Makefile
  2. +1
    -0
      thumbs.c

+ 1
- 1
Makefile Dosyayı Görüntüle

@@ -1,4 +1,4 @@
VERSION = git-20111101
VERSION = git-20111105

CC = gcc
CFLAGS = -ansi -Wall -pedantic -O2


+ 1
- 0
thumbs.c Dosyayı Görüntüle

@@ -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;



Yükleniyor…
İptal
Kaydet