Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
Immanuel
/
sxiv
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
Thumbnails only get scaled down, fixed issue
#27
master
Bert Münnich
hace 14 años
padre
71a7940d74
commit
5034792948
Se han
modificado 2 ficheros
con
2 adiciones
y
1 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+1
-1
Makefile
+1
-0
thumbs.c
+ 1
- 1
Makefile
Ver fichero
@@ -1,4 +1,4 @@
VERSION = git-2011110
1
VERSION = git-2011110
5
CC = gcc
CFLAGS = -ansi -Wall -pedantic -O2
+ 1
- 0
thumbs.c
Ver fichero
@@ -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;
Escribir
Vista previa
Cargando…
Cancelar
Guardar