Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
Immanuel
/
sxiv
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Pull requests
0
Versões
0
Wiki
Atividade
Ver código fonte
Thumbnails only get scaled down, fixed issue
#27
master
Bert Münnich
14 anos atrás
pai
71a7940d74
commit
5034792948
2 arquivos alterados
com
2 adições
e
1 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+1
-1
Makefile
+1
-0
thumbs.c
+ 1
- 1
Makefile
Ver arquivo
@@ -1,4 +1,4 @@
VERSION = git-2011110
1
VERSION = git-2011110
5
CC = gcc
CFLAGS = -ansi -Wall -pedantic -O2
+ 1
- 0
thumbs.c
Ver arquivo
@@ -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;
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar